Skip to content

Commit 449d9b2

Browse files
committed
Merge rust-bitcoin/rust-bitcoin#802: Subsidy halving interval
94dd57d Add subsidy halving interval constant (Casey Rodarmor) Pull request description: Fixes #801. ACKs for top commit: Kixunil: ACK 94dd57d apoelstra: ACK 94dd57d Tree-SHA512: e43df8888216017c1f9af4565890fad344c2822a8a11d5ae6453c300240a14ae89ce6b5d2a4bbdfb105f87606421accd7ecf42149d36442ffba05e3af94bdaa7
2 parents aabe033 + c0c29b6 commit 449d9b2

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)