Module miner

Source

Structsยง

MinerRewardsRecipientConfig
Auxiliary structure representing node miner rewards recipient configuration

Functionsยง

generate_next_block ๐Ÿ”’
Auxiliary function to generate next block in an atomic manner.
generate_transaction ๐Ÿ”’
Auxiliary function to generate a Money::PoWReward transaction.
listen_to_network ๐Ÿ”’
Async task to listen for incoming proposals and check if the best fork has changed.
mine ๐Ÿ”’
Async task to generate and mine provided fork index next block, while listening for a stop signal.
mine_next_block ๐Ÿ”’
Async task to generate and mine provided fork index next block.
miner_task
Async task used for participating in the PoW block production.
wait_stop_signal
Async task to wait for listenerโ€™s stop signal.