Skip to content

Commit c0c29b6

Browse files
committed
Add subsidy halving interval constant
1 parent aabe033 commit c0c29b6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/blockdata/constants.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ pub const PUBKEY_ADDRESS_PREFIX_TEST: u8 = 111; // 0x6f
6161
pub const SCRIPT_ADDRESS_PREFIX_TEST: u8 = 196; // 0xc4
6262
/// The maximum allowed script size.
6363
pub const MAX_SCRIPT_ELEMENT_SIZE: usize = 520;
64-
64+
/// How may blocks between halvings.
65+
pub const SUBSIDY_HALVING_INTERVAL: u32 = 210_000;
6566

6667
/// In Bitcoind this is insanely described as ~((u256)0 >> 32)
6768
pub fn max_target(_: Network) -> Uint256 {

0 commit comments

Comments
 (0)