Skip to content

Commit 50c723a

Browse files
authored
Merge pull request #5351 from stacks-network/fix/default-affirmation-settings
Fix default affirmation map settings for 3.0
2 parents 5f1b6b9 + c184f54 commit 50c723a

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

testnet/stacks-node/src/config.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -853,12 +853,6 @@ impl Config {
853853
"Attempted to run mainnet node with `use_test_genesis_chainstate`"
854854
));
855855
}
856-
} else if node.require_affirmed_anchor_blocks {
857-
// testnet requires that we use the 2.05 rules for anchor block affirmations,
858-
// because reward cycle 360 (and possibly future ones) has a different anchor
859-
// block choice in 2.05 rules than in 2.1 rules.
860-
debug!("Set `require_affirmed_anchor_blocks` to `false` for non-mainnet config");
861-
node.require_affirmed_anchor_blocks = false;
862856
}
863857

864858
if node.stacker || node.miner {
@@ -1968,7 +1962,7 @@ impl Default for NodeConfig {
19681962
marf_defer_hashing: true,
19691963
pox_sync_sample_secs: 30,
19701964
use_test_genesis_chainstate: None,
1971-
always_use_affirmation_maps: false,
1965+
always_use_affirmation_maps: true,
19721966
require_affirmed_anchor_blocks: true,
19731967
fault_injection_block_push_fail_probability: None,
19741968
fault_injection_hide_blocks: false,

0 commit comments

Comments
 (0)