Add subsidy halving interval constant
This commit is contained in:
parent
d2d5099b52
commit
94dd57de12
|
@ -61,7 +61,8 @@ pub const PUBKEY_ADDRESS_PREFIX_TEST: u8 = 111; // 0x6f
|
||||||
pub const SCRIPT_ADDRESS_PREFIX_TEST: u8 = 196; // 0xc4
|
pub const SCRIPT_ADDRESS_PREFIX_TEST: u8 = 196; // 0xc4
|
||||||
/// The maximum allowed script size.
|
/// The maximum allowed script size.
|
||||||
pub const MAX_SCRIPT_ELEMENT_SIZE: usize = 520;
|
pub const MAX_SCRIPT_ELEMENT_SIZE: usize = 520;
|
||||||
|
/// How may blocks between halvings.
|
||||||
|
pub const SUBSIDY_HALVING_INTERVAL: u32 = 210_000;
|
||||||
|
|
||||||
/// In Bitcoind this is insanely described as ~((u256)0 >> 32)
|
/// In Bitcoind this is insanely described as ~((u256)0 >> 32)
|
||||||
pub fn max_target(_: Network) -> Uint256 {
|
pub fn max_target(_: Network) -> Uint256 {
|
||||||
|
|
Loading…
Reference in New Issue