You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tx.set_override_affirmation_map(*reward_cycle, affirmation.clone()).unwrap_or_else(|_| panic!("FATAL: failed to set affirmation override ({affirmation}) for reward cycle {reward_cycle}"));
1040
-
}
1041
-
tx.commit()
1042
-
.expect("FATAL: failed to commit burnchain DB tx");
/// Add affirmation overrides required to sync Xenon Testnet node.
1783
-
///
1784
-
/// The Xenon Testnet Stacks 2.4 activation height occurred before the finalized SIP-024 updates and release of the stacks-node versioned 2.4.0.0.0.
1785
-
/// This caused the Stacks Xenon testnet to undergo a deep reorg when 2.4.0.0.0 was finalized. This deep reorg meant that 3 reward cycles were
1786
-
/// invalidated, which requires overrides in the affirmation map to continue correct operation. Those overrides are required for cycles 413, 414, and 415.
1787
-
#[allow(clippy::indexing_slicing)]// bad affirmation map override should panic
let affirmations_pre_2_5 = "nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnppnnnnnnnnnnnnnnnnnnnnnnnnpppppnnnnnnnnnnnnnnnnnnnnnnnpppppppppppppppnnnnnnnnnnnnnnnnnnnnnnnppppppppppnnnnnnnnnnnnnnnnnnnppppnnnnnnnnnnnnnnnnnnnnnnnppppppppnnnnnnnnnnnnnnnnnnnnnnnppnppnnnnnnnnnnnnnnnnnnnnnnnppppnnnnnnnnnnnnnnnnnnnnnnnnnppppppnnnnnnnnnnnnnnnnnnnnnnnnnppnnnnnnnnnnnnnnnnnnnnnnnnnpppppppnnnnnnnnnnnnnnnnnnnnnnnnnnpnnnnnnnnnnnnnnnnnnnnnnnnnpppnppppppppppppppnnppppnpaaaapppppppnnnnnnnnnnnnnnnnnnnnnnnpnppnppppnnnnnnnnnnnnnnnnnnnnnnnnnppnnnnnnnnnnnnnnnnnnnnnnnpnpppppppppnppnnnnnnnnnnnnnnnnnnnnnnnnnppnppppppppp";
1805
-
let xenon_pox_consts = PoxConstants::testnet_default();
let affirmation_string = "nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnppnnnnnnnnnnnnnnnnnnnnnnnnpppppnnnnnnnnnnnnnnnnnnnnnnnpppppppppppppppnnnnnnnnnnnnnnnnnnnnnnnppppppppppnnnnnnnnnnnnnnnnnnnppppnnnnnnnnnnnnnnnnnnnnnnnppppppppnnnnnnnnnnnnnnnnnnnnnnnppnppnnnnnnnnnnnnnnnnnnnnnnnppppnnnnnnnnnnnnnnnnnnnnnnnnnppppppnnnnnnnnnnnnnnnnnnnnnnnnnppnnnnnnnnnnnnnnnnnnnnnnnnnpppppppnnnnnnnnnnnnnnnnnnnnnnnnnnpnnnnnnnnnnnnnnnnnnnnnnnnnpppnppppppppppppppnnppppnpa";
4850
-
let affirmation =
4851
-
AffirmationMap::decode(affirmation_string).expect("Failed to decode affirmation map");
4852
-
let config = Config::from_config_file(
4853
-
ConfigFile::from_str(&format!(
4854
-
r#"
4855
-
[[burnchain.affirmation_overrides]]
4856
-
reward_cycle = 413
4857
-
affirmation = "{affirmation_string}"
4858
-
"#
4859
-
))
4860
-
.expect("Expected to be able to parse config file from string"),
4861
-
false,
4862
-
)
4863
-
.expect("Expected to be able to parse affirmation map from file");
let affirmation_string = "aaapnnnnnnnnnnnnnnnnnnnnnnnnnnnnppnnnnnnnnnnnnnnnnnnnnnnnnpppppnnnnnnnnnnnnnnnnnnnnnnnpppppppppppppppnnnnnnnnnnnnnnnnnnnnnnnppppppppppnnnnnnnnnnnnnnnnnnnppppnnnnnnnnnnnnnnnnnnnnnnnppppppppnnnnnnnnnnnnnnnnnnnnnnnppnppnnnnnnnnnnnnnnnnnnnnnnnppppnnnnnnnnnnnnnnnnnnnnnnnnnppppppnnnnnnnnnnnnnnnnnnnnnnnnnppnnnnnnnnnnnnnnnnnnnnnnnnnpppppppnnnnnnnnnnnnnnnnnnnnnnnnnnpnnnnnnnnnnnnnnnnnnnnnnnnnpppnppppppppppppppnnppppnpa";
4921
-
let affirmation =
4922
-
AffirmationMap::decode(affirmation_string).expect("Failed to decode affirmation map");
4923
-
4924
-
let config = Config::from_config_file(
4925
-
ConfigFile::from_str(&format!(
4926
-
r#"
4927
-
[burnchain]
4928
-
chain = "bitcoin"
4929
-
mode = "xenon"
4930
-
4931
-
[[burnchain.affirmation_overrides]]
4932
-
reward_cycle = 413
4933
-
affirmation = "{affirmation_string}"
4934
-
"#,
4935
-
))
4936
-
.expect("Expected to be able to parse config file from string"),
4937
-
false,
4938
-
)
4939
-
.expect("Expected to be able to parse affirmation map from file");
4940
-
// Should default add xenon affirmation overrides, but overwrite with the configured one above
0 commit comments