From 8eadec0f9536c092004166d3bbfc4242be48b353 Mon Sep 17 00:00:00 2001 From: gruve-p Date: Sat, 2 Sep 2023 21:58:21 +0200 Subject: [PATCH] patch for ord --- groestlcoin/src/blockdata/constants.rs | 6 +++--- groestlcoin/src/consensus/params.rs | 16 ++++++++-------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/groestlcoin/src/blockdata/constants.rs b/groestlcoin/src/blockdata/constants.rs index d3ec90046d..b160f3226b 100644 --- a/groestlcoin/src/blockdata/constants.rs +++ b/groestlcoin/src/blockdata/constants.rs @@ -27,9 +27,9 @@ use crate::Amount; /// How many seconds between blocks we expect on average. pub const TARGET_BLOCK_SPACING: u32 = 60; /// How many blocks between diffchanges. -pub const DIFFCHANGE_INTERVAL: u32 = 1; +pub const DIFFCHANGE_INTERVAL: u32 = 2016; /// How much time on average should occur between diffchanges. -pub const DIFFCHANGE_TIMESPAN: u32 = 1; +pub const DIFFCHANGE_TIMESPAN: u32 = 60; #[deprecated(since = "0.31.0", note = "Use Weight::MAX_BLOCK instead")] /// The maximum allowed weight for a block, see BIP 141 (network rule). @@ -54,7 +54,7 @@ pub const SCRIPT_ADDRESS_PREFIX_TEST: u8 = 196; // 0xc4 /// The maximum allowed script size. pub const MAX_SCRIPT_ELEMENT_SIZE: usize = 520; /// How may blocks between halvings. -pub const SUBSIDY_HALVING_INTERVAL: u32 = 210_000; +pub const SUBSIDY_HALVING_INTERVAL: u32 = 1_050_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. diff --git a/groestlcoin/src/consensus/params.rs b/groestlcoin/src/consensus/params.rs index f980f406ba..da8a19bd3c 100644 --- a/groestlcoin/src/consensus/params.rs +++ b/groestlcoin/src/consensus/params.rs @@ -61,8 +61,8 @@ impl Params { rule_change_activation_threshold: 1815, // 90% miner_confirmation_window: 2016, pow_limit: Work::MAINNET_MIN, - pow_target_spacing: 60, // 1 minute. - pow_target_timespan: 14 * 24 * 60 * 60, // 2 weeks. + pow_target_spacing: 60, // 1 minute. + pow_target_timespan: 129600, // 1.5 days (1.5 * 24 * 60 * 60) allow_min_difficulty_blocks: false, no_pow_retargeting: false, }, @@ -75,8 +75,8 @@ impl Params { rule_change_activation_threshold: 1512, // 75% miner_confirmation_window: 2016, pow_limit: Work::TESTNET_MIN, - pow_target_spacing: 60, // 1 minute. - pow_target_timespan: 14 * 24 * 60 * 60, // 2 weeks. + pow_target_spacing: 60, // 1 minute. + pow_target_timespan: 129600, // 1.5 days (1.5 * 24 * 60 * 60) allow_min_difficulty_blocks: true, no_pow_retargeting: false, }, @@ -89,8 +89,8 @@ impl Params { rule_change_activation_threshold: 1815, // 90% miner_confirmation_window: 2016, pow_limit: Work::SIGNET_MIN, - pow_target_spacing: 60, // 1 minute. - pow_target_timespan: 14 * 24 * 60 * 60, // 2 weeks. + pow_target_spacing: 60, // 1 minute. + pow_target_timespan: 129600, // 1.5 days (1.5 * 24 * 60 * 60) allow_min_difficulty_blocks: false, no_pow_retargeting: false, }, @@ -103,8 +103,8 @@ impl Params { rule_change_activation_threshold: 108, // 75% miner_confirmation_window: 144, pow_limit: Work::REGTEST_MIN, - pow_target_spacing: 60, // 1 minute. - pow_target_timespan: 14 * 24 * 60 * 60, // 2 weeks. + pow_target_spacing: 60, // 1 minute. + pow_target_timespan: 129600, // 1.5 days (1.5 * 24 * 60 * 60) allow_min_difficulty_blocks: true, no_pow_retargeting: true, },