Add constant for coinbase maturity

This commit is contained in:
benthecarman 2023-02-28 05:37:10 -06:00
parent 5a867821aa
commit 7d1645aea0
No known key found for this signature in database
GPG Key ID: D7CC770B81FD22A8
1 changed files with 2 additions and 0 deletions

View File

@ -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