diff --git a/bitcoin/src/blockdata/constants.rs b/bitcoin/src/blockdata/constants.rs index 3ae56bb5..b3f9743f 100644 --- a/bitcoin/src/blockdata/constants.rs +++ b/bitcoin/src/blockdata/constants.rs @@ -54,6 +54,8 @@ pub const MAX_SCRIPT_ELEMENT_SIZE: usize = 520; pub const SUBSIDY_HALVING_INTERVAL: u32 = 210_000; /// Maximum allowed value for an integer in Script. pub const MAX_SCRIPTNUM_VALUE: u32 = 0x80000000; // 2^31 +/// Number of blocks needed for an output from a coinbase transaction to be spendable. +pub const COINBASE_MATURITY: u32 = 100; /// The maximum value allowed in an output (useful for sanity checking, /// since keeping everything below this value should prevent overflows