Module consensus

Module consensus 

Source

Structsยง

ConsensusInitTaskConfig
Auxiliary structure representing node consensus init task configuration.

Functionsยง

clean_blocktemplates ๐Ÿ”’
Auxiliary function to drop mining block templates not referencing active forks or last confirmed block.
consensus_init_task
Sync the node consensus state and start the corresponding task, based on node type.
consensus_task ๐Ÿ”’
Async task used for listening for new blocks and perform consensus.
listen_to_network ๐Ÿ”’
Async task to start the consensus task, while monitoring for a network disconnections.
monitor_network ๐Ÿ”’
Async task to monitor network disconnections.