TODO: Replace with a real superblock
()
| 25 | |
| 26 | // TODO: Replace with a real superblock |
| 27 | pub fn find_superblock() -> Header { |
| 28 | Header { |
| 29 | version: Version::from_consensus(0x200d2000), |
| 30 | prev_blockhash: BlockHash::from_str( |
| 31 | "000000000000000000027c9f5b07f21e39ba31aa4d900d519478bdac32f4a15d", |
| 32 | ) |
| 33 | .unwrap(), |
| 34 | merkle_root: TxMerkleNode::from_str( |
| 35 | "0064b0d54f20412756ba7ce07b0594f3548b06f2dad5cfeaac2aca508634ed19", |
| 36 | ) |
| 37 | .unwrap(), |
| 38 | time: 1729251961, |
| 39 | bits: CompactTarget::from_hex("0x17030ecd").unwrap(), |
| 40 | nonce: 0x400e345c, |
| 41 | } |
| 42 | } |
| 43 | |
| 44 | pub fn get_superblock_message(sb: &Header) -> Vec<u8> { |
| 45 | serialize(sb) |
no outgoing calls
no test coverage detected