pub struct Executor {
    pub database: Database,
    pub config: Config,
}
Expand description

! The executor is used for block production and validation. Given a block, it will execute all the transactions contained in the block and persist changes to the underlying database as needed. In production mode, block fields like transaction commitments are set based on the executed txs. In validation mode, the processed block commitments are compared with the proposed block.

Fields§

§database: Database§config: Config

Implementations§

Executes the block and commits the result of the execution into the inner Database.

Verify all the predicates of a tx.

Trait Implementations§

Executes the block and returns the result of execution with uncommitted database transaction.
Executes the block without committing it to the database. During execution collects the receipts to return them. The utxo_validation field can be used to disable the validation of utxos during execution.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more