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
let affirmation_string = "aaapnnnnnnnnnnnnnnnnnnnnnnnnnnnnppnnnnnnnnnnnnnnnnnnnnnnnnpppppnnnnnnnnnnnnnnnnnnnnnnnpppppppppppppppnnnnnnnnnnnnnnnnnnnnnnnppppppppppnnnnnnnnnnnnnnnnnnnppppnnnnnnnnnnnnnnnnnnnnnnnppppppppnnnnnnnnnnnnnnnnnnnnnnnppnppnnnnnnnnnnnnnnnnnnnnnnnppppnnnnnnnnnnnnnnnnnnnnnnnnnppppppnnnnnnnnnnnnnnnnnnnnnnnnnppnnnnnnnnnnnnnnnnnnnnnnnnnpppppppnnnnnnnnnnnnnnnnnnnnnnnnnnpnnnnnnnnnnnnnnnnnnnnnnnnnpppnppppppppppppppnnppppnpa";
278
+
let affirmation =
279
+
AffirmationMap::decode(affirmation_string).expect("Failed to decode affirmation map");
280
+
281
+
let config = Config::from_config_file(
282
+
ConfigFile::from_str(&format!(
283
+
r#"
284
+
[burnchain]
285
+
chain = "bitcoin"
286
+
mode = "xenon"
287
+
288
+
[[burnchain.affirmation_overrides]]
289
+
reward_cycle = 413
290
+
affirmation = "{affirmation_string}"
291
+
"#,
292
+
))
293
+
.expect("Expected to be able to parse config file from string"),
294
+
)
295
+
.expect("Expected to be able to parse affirmation map from file");
296
+
// Should default add xenon affirmation overrides, but overwrite with the configured one above
0 commit comments