Skip to content

Conversation

@mchristou
Copy link
Contributor

implement #5238

Add zombienet-sdk tests for BEEFY warp sync with ConsensusReset scenarios

  • warp_sync_with_consensus_reset_during_gap_sync: Tests warp sync handling when ConsensusReset occurs during gap-sync phase
  • warp_sync_with_historical_consensus_reset: Tests warp sync over a chain with a historical ConsensusReset

@mchristou mchristou requested review from a team as code owners January 21, 2026 18:25
@mchristou mchristou added R0-no-crate-publish-required The change does not require any crates to be re-published. T10-tests This PR/Issue is related to tests. labels Jan 21, 2026
Comment on lines 144 to 153
fn create_set_new_genesis_call(delay_in_blocks: u32) -> subxt::tx::DynamicPayload {
// Construct: Beefy(set_new_genesis { delay_in_blocks })
let set_new_genesis = Value::named_variant(
"set_new_genesis",
[("delay_in_blocks", Value::u128(delay_in_blocks as u128))],
);
let beefy_call = Value::unnamed_variant("Beefy", [set_new_genesis]);

subxt::tx::dynamic("Sudo", "sudo", vec![beefy_call])
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we extract this fn to a helper fn?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, extracted in utils

@pepoviola pepoviola requested a review from skunert January 21, 2026 19:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

R0-no-crate-publish-required The change does not require any crates to be re-published. T10-tests This PR/Issue is related to tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants