-
Notifications
You must be signed in to change notification settings - Fork 12
How Foundry verifies a block
Junha Yang(양준하) edited this page Jul 20, 2020
·
1 revision
- Receive a block from block sync or Tendermint consensus.
- Verify the block
- Verify the block without history in the verification queue
- Call
Client::import_block
function - Verify block without history in the verification queue
- If blocks are verified,
client::import_verified_blocks
is called
- Call
- Verify the block using history
- Call
check_and_close_block
in theimport_verified_blocks
- Call
verify_block_family
,verify_block_external
, andverify_block_final
in thecheck_and_close_block
function
- Call
- Verify the block without history in the verification queue
- The verified block will be saved in the disk of the
commit_block
function.
Verification queues verify signatures in a block using threads.