Function scan_block

Source
pub fn scan_block(
    network: &Network,
    block: &Block,
    sapling_tree_size: u32,
    scanning_key: &ScanningKeys<AccountId, (AccountId, Scope)>,
) -> Result<ScannedBlock<AccountId>, ScanError>
Expand description

Returns the transactions from block belonging to the given scanning_keys.

§Performance / Hangs

This method can block while reading database files, so it must be inside spawn_blocking() in async code.

TODO:

  • Pass the real sapling_tree_size parameter from the state.
  • Add other prior block metadata.