-
Couldn't load subscription status.
- 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_blockfunction - Verify block without history in the verification queue
- If blocks are verified,
client::import_verified_blocksis called
- Call
- Verify the block using history
- Call
check_and_close_blockin theimport_verified_blocks - Call
verify_block_family,verify_block_external, andverify_block_finalin thecheck_and_close_blockfunction
- Call
- Verify the block without history in the verification queue
- The verified block will be saved in the disk of the
commit_blockfunction.
Verification queues verify signatures in a block using threads.