1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//! The two BLAKE2b forks' activation points, from SPEC 3.2's parents table.
//!
//! A fork shares its origin's genesis, so the block that fixes which chain an
//! alias means is the first block on the fork's side. A validator beside
//! `xbt` or `txbt4` asserts at boot that the parent's block at the fork
//! height has the fork hash (ADR-2103 D3a: the fork keeps mainnet's network
//! magic and port, so a wrong-chain parent looks healthy). Sources:
//! `siding/lib/parents.mjs` and the kernel's
//! `schema/overlays/knots-blake2b.jsonld` (`blake2bHeight`, `forkBlockHash`).
use cratehex32_const;
use crateBlockHash;
/// `xbt`, BLAKE2b mainnet (Knots): the height of the first v2 / BLAKE2b
/// header. Bitcoin's history is shared through 961,631; eight Knots-only
/// SHA-256d blocks 961,632–961,639 precede it.
pub const XBT_FORK_HEIGHT: u32 = 961_640;
/// `xbt`: the hash of block 961,640.
pub const XBT_FORK_HASH: BlockHash = BlockHash;
/// `txbt4`, BLAKE2b testnet4 (Knots): the height of the first v2 / BLAKE2b
/// header. Testnet4's history is shared through 150,307.
pub const TXBT4_FORK_HEIGHT: u32 = 150_308;
/// `txbt4`: the hash of block 150,308.
pub const TXBT4_FORK_HASH: BlockHash = BlockHash;
/// `btc` / `xbt`: Bitcoin's genesis block hash (shared by the fork).
pub const BTC_GENESIS_HASH: BlockHash = BlockHash;
/// `tbtc4` / `txbt4`: testnet4's genesis block hash (shared by the fork).
pub const TBTC4_GENESIS_HASH: BlockHash = BlockHash;