TODO: Implement selecting a block that marks the start of a superblock measurement period that lasts for the period ∆C (e.g. 2000 blocks), during which the operator must observe all blocks on the main chain and identify the heaviest superblock SB. */
(network: Network)
| 16 | all blocks on the main chain and identify the heaviest superblock SB. |
| 17 | */ |
| 18 | pub fn get_start_time_block_number(network: Network) -> u32 { |
| 19 | match network { |
| 20 | Network::Bitcoin => 161249, |
| 21 | Network::Regtest => 100, |
| 22 | _ => 161249, |
| 23 | } |
| 24 | } |
| 25 | |
| 26 | // TODO: Replace with a real superblock |
| 27 | pub fn find_superblock() -> Header { |
no outgoing calls