-
Notifications
You must be signed in to change notification settings - Fork 1.6k
session-info: add new fields + migration #4545
Conversation
* master: pvf-precheck: Integrate PVF pre-checking into paras module (#4457)
…kadot into ao-session-info-migration * 'ao-session-info-migration' of github.com:paritytech/polkadot:
* master: dispute-coordinator: fix underflow panic (#4557) Bump futures from 0.3.18 to 0.3.19 (#4567) Bump lru from 0.7.0 to 0.7.1 (#4566) Update Polkadot (#4561) Suggest installing graphviz before book building (#4565) [Zombienet] fix test creds (#4562) chain-api: stop ancestors lookup at block #0 (#4560) use v1.0.2 of zombienet (#4553) remove invalid dispute subsystem replace (#4559) Bump hyper from 0.14.15 to 0.14.16 (#4550) Create a README for XCMv2 detailing notable changes (#4059) enable disputes for known chains, except for polkadot (#4464) dispute statements node side limiting (#4541) Bump serde from 1.0.131 to 1.0.132 (#4551) Bump nix from 0.23.0 to 0.23.1 (#4552) Dispute coordinator: look for included candidates in non-finalized chain (#4508)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. I'd argue we eventually want to find a more streamlined way of versioning (which is mostly expanding structs) beyond copying structs and adding fields. Not sure if nesting is the best thing either. A discussion to be had in the future. I digress. LGTM
@@ -740,6 +740,22 @@ impl ChainBuilder { | |||
} | |||
} | |||
|
|||
fn session_info(keys: &[Sr25519Keyring]) -> SessionInfo { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should probably prefix this with dummy_
or make_
to make it explicit this is only every used for test and not some internal fn
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree, although this is a private function in tests module :P
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should have Prefix It With "Micro nit:" 🌻
bumping to medium priority, because we want validators to update before the runtime is enacted |
bot merge |
Error: It's not possible to meet the minimal approval count of 1 in paritytech/cumulus#872 |
bot merge |
* companion for paritytech/polkadot#4545 * update lockfile for polkadot Co-authored-by: parity-processbot <>
* master: make check-dependent-* only be executed in PRs (#4588) session_info: add dispute_period and random_seed (#4547) session-info: add new fields + migration (#4545) Bump zstd from 0.9.0+zstd.1.5.0 to 0.9.1+zstd.1.5.1 (#4597) Relaunch Rococo (#4577) Companion for substrate#9732 (#4104) Better logs and metrics on PoV fetching. (#4593)
* session_info: v2 + migration * use primitives::v2 * use polkadot_primitives::v2 * impl primitives::v2 * fix approval-voting tests * fix other tests * hook storage migration up * backwards compat (1) * backwards compat (2) * fmt * fix tests * FMT * do not reexport v1 in v2 * fmt * set storage version to 1 Co-authored-by: Javier Viola <[email protected]>
* session_info: v2 + migration * use primitives::v2 * use polkadot_primitives::v2 * impl primitives::v2 * fix approval-voting tests * fix other tests * hook storage migration up * backwards compat (1) * backwards compat (2) * fmt * fix tests * FMT * do not reexport v1 in v2 * fmt * set storage version to 1 Co-authored-by: Javier Viola <[email protected]>
* session_info: v2 + migration * use primitives::v2 * use polkadot_primitives::v2 * impl primitives::v2 * fix approval-voting tests * fix other tests * hook storage migration up * backwards compat (1) * backwards compat (2) * fmt * fix tests * FMT * do not reexport v1 in v2 * fmt * set storage version to 1 Co-authored-by: Javier Viola <[email protected]>
* companion for paritytech/polkadot#4545 * update lockfile for polkadot Co-authored-by: parity-processbot <>
This PR adds new fields to SessionInfo module in preparation for implementing dispute offences and validator disabling.
In order to disable a validator, we need an index into the original set, not the one reduced to (shuffled) parachain validators.
is moving ParachainHost to v2 gonna cause problems?cumulus companion: paritytech/cumulus#875