Key transactions

Transaction processing engine

Responsible for processing block packaging, verification, and block processing.

Block proposal

Determine whether it is a proposal node (via the On Receive Propose Status Change method) to obtain the notification of the consensus module. Change the proposer status of the core engine.

Trigger packaging event

The concurrency control is performed based on the reentrant lock first, and only one thread performs the package task execution trigger mechanism including : the proposal timeout or the TxPool module pool size exceeds the threshold to determine whether the package can be packaged. If it passes, go to step 3 to reconfirm that the node is the proposer. The stage is not in the state of the block being packaged or the proposal block has not been settled.

Last updated