mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 10:01:17 +00:00
dispute-coordinator: disabling in participation (#2637)
Closes #2225. - [x] tests - [x] fix todos - [x] fix duplicates - [x] make the check part of `potential_spam` - [x] fix a bug with votes insertion - [x] guide changes - [x] docs --------- Co-authored-by: Tsvetomir Dimitrov <tsvetomir@parity.io>
This commit is contained in:
@@ -1030,9 +1030,10 @@ async fn construct_per_relay_parent_state<Context>(
|
||||
// Once runtime ver `DISABLED_VALIDATORS_RUNTIME_REQUIREMENT` is released remove this call to
|
||||
// `get_disabled_validators_with_fallback`, add `request_disabled_validators` call to the
|
||||
// `try_join!` above and use `try_runtime_api!` to get `disabled_validators`
|
||||
let disabled_validators = get_disabled_validators_with_fallback(ctx.sender(), parent)
|
||||
.await
|
||||
.map_err(Error::UtilError)?;
|
||||
let disabled_validators =
|
||||
get_disabled_validators_with_fallback(ctx.sender(), parent).await.map_err(|e| {
|
||||
Error::UtilError(TryFrom::try_from(e).expect("the conversion is infallible; qed"))
|
||||
})?;
|
||||
|
||||
let signing_context = SigningContext { parent_hash: parent, session_index };
|
||||
let validator = match Validator::construct(
|
||||
|
||||
Reference in New Issue
Block a user