Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Executor ¶
type Executor interface { // InitChain initializes the blockchain with genesis information. InitChain(ctx context.Context, genesisTime time.Time, initialHeight uint64, chainID string) (stateRoot types.Hash, maxBytes uint64, err error) // GetTxs retrieves all available transactions from the execution client's mempool. GetTxs(ctx context.Context) ([]types.Tx, error) // ExecuteTxs executes a set of transactions to produce a new block header. ExecuteTxs(ctx context.Context, txs []types.Tx, blockHeight uint64, timestamp time.Time, prevStateRoot types.Hash) (updatedStateRoot types.Hash, maxBytes uint64, err error) // SetFinal marks a block at the given height as final. SetFinal(ctx context.Context, blockHeight uint64) error }
Executor defines a common interface for interacting with the execution client.
Click to show internal directories.
Click to hide internal directories.