pub async fn prepare_block_0(
    settings: &Settings,
    storage: &Storage
) -> Result<Block, Error>
Expand description

loading the block 0 is not as trivial as it seems, there are different cases that we may encounter:

  1. we have the block_0 given as parameter of the settings: easy, we read it;
  2. we have the block_0 hash only:
    1. check the storage if we don’t have it already there;
    2. check the network nodes we know about