Skip to content

Commit

Permalink
patch for ord
Browse files Browse the repository at this point in the history
  • Loading branch information
gruve-p committed Sep 2, 2023
1 parent 74bc855 commit 8eadec0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions groestlcoin/src/blockdata/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand All @@ -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.
Expand Down
16 changes: 8 additions & 8 deletions groestlcoin/src/consensus/params.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Expand All @@ -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,
},
Expand All @@ -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,
},
Expand All @@ -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,
},
Expand Down

0 comments on commit 8eadec0

Please sign in to comment.