From 94dd57de1261d81604c980dcaac1a325f82758f7 Mon Sep 17 00:00:00 2001 From: Casey Rodarmor Date: Wed, 19 Jan 2022 21:31:04 -0800 Subject: [PATCH] Add subsidy halving interval constant --- src/blockdata/constants.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/blockdata/constants.rs b/src/blockdata/constants.rs index 3b54e43c..bb0ac0b5 100644 --- a/src/blockdata/constants.rs +++ b/src/blockdata/constants.rs @@ -61,7 +61,8 @@ pub const PUBKEY_ADDRESS_PREFIX_TEST: u8 = 111; // 0x6f pub const SCRIPT_ADDRESS_PREFIX_TEST: u8 = 196; // 0xc4 /// The maximum allowed script size. pub const MAX_SCRIPT_ELEMENT_SIZE: usize = 520; - +/// How may blocks between halvings. +pub const SUBSIDY_HALVING_INTERVAL: u32 = 210_000; /// In Bitcoind this is insanely described as ~((u256)0 >> 32) pub fn max_target(_: Network) -> Uint256 {