MCPcopy Create free account
hub / github.com/BitVM/BitVM / find_superblock

Function find_superblock

bridge/src/superblock.rs:27–42  ·  view source on GitHub ↗

TODO: Replace with a real superblock

()

Source from the content-addressed store, hash-verified

25
26// TODO: Replace with a real superblock
27pub 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
44pub fn get_superblock_message(sb: &Header) -> Vec<u8> {
45 serialize(sb)

Callers 2

kick_off_2Method · 0.85
disprove_chainMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected