Add constant for coinbase maturity
This commit is contained in:
parent
5a867821aa
commit
7d1645aea0
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue