pub enum ConsensusRequest {
InitChain(InitChain),
BeginBlock(BeginBlock),
DeliverTx(DeliverTx),
EndBlock(EndBlock),
Commit,
}
Expand description
The consensus category of ABCI requests.
Variants
InitChain(InitChain)
Tuple Fields
0: InitChain
Called on genesis to initialize chain state.
BeginBlock(BeginBlock)
Tuple Fields
0: BeginBlock
Signals the beginning of a new block.
Called prior to any DeliverTx
s. The header
contains the height,
timestamp, and more – it exactly matches the Tendermint block header.
DeliverTx(DeliverTx)
Tuple Fields
0: DeliverTx
Execute a transaction against the application state.
EndBlock(EndBlock)
Tuple Fields
0: EndBlock
Signals the end of a block.
Called after all transactions, and prior to each Commit
.
Commit
Signals the application that it can write the queued state transitions from the block to its state.
Trait Implementations
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for ConsensusRequest
impl Send for ConsensusRequest
impl Sync for ConsensusRequest
impl Unpin for ConsensusRequest
impl UnwindSafe for ConsensusRequest
Blanket Implementations
Mutably borrows from an owned value. Read more