pub async fn validate_tipset<DB: Blockstore + Send + Sync + 'static>(
state_manager: Arc<StateManager<DB>>,
chainstore: &ChainStore<DB>,
full_tipset: FullTipset,
genesis: &Tipset,
bad_block_cache: Option<Arc<BadBlockCache>>,
) -> Result<(), TipsetSyncerError>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.