Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SnapshotTask ¶
SnapshotTask pushes a snapshot to Ethereum.
func NewSnapshotTask ¶
func NewSnapshotTask(height uint64, numOfValidators, validatorIndex int) *SnapshotTask
func (*SnapshotTask) Execute ¶
func (t *SnapshotTask) Execute(ctx context.Context) (*types.Transaction, *tasks.TaskErr)
Execute executes the task business logic.
func (*SnapshotTask) Prepare ¶
func (t *SnapshotTask) Prepare(ctx context.Context) *tasks.TaskErr
Prepare prepares for work to be done in the SnapshotTask.
func (*SnapshotTask) ShouldExecute ¶
ShouldExecute checks if it makes sense to execute the task.
Click to show internal directories.
Click to hide internal directories.