Function forest_filecoin::chain_sync::tipset_syncer::validate_tipset

source ยท
async fn validate_tipset<DB: Blockstore + Send + Sync + 'static>(
    state_manager: Arc<StateManager<DB>>,
    chainstore: &ChainStore<DB>,
    bad_block_cache: &BadBlockCache,
    full_tipset: FullTipset,
    genesis: &Tipset,
    invalid_block_strategy: InvalidBlockStrategy,
) -> Result<(), TipsetRangeSyncerError>
Expand description

Validates full blocks in the tipset in parallel (since the messages are not executed), adding the successful ones to the tipset tracker, and the failed ones to the bad block cache, depending on strategy. Any bad block fails validation.