mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 22:11:02 +00:00
core: grandpa: persist voter set state on authority set change (#2249)
This commit is contained in:
committed by
Robert Habermeier
parent
ae916c6c5e
commit
2fad6d80da
@@ -607,6 +607,8 @@ pub fn run_grandpa<B, E, Block: BlockT<Hash=H256>, N, RA>(
|
|||||||
current_round: HasVoted::No,
|
current_round: HasVoted::No,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
aux_schema::write_voter_set_state(&**client.backend(), &set_state)?;
|
||||||
|
|
||||||
let set_state: SharedVoterSetState<_> = set_state.into();
|
let set_state: SharedVoterSetState<_> = set_state.into();
|
||||||
|
|
||||||
let env = Arc::new(Environment {
|
let env = Arc::new(Environment {
|
||||||
|
|||||||
Reference in New Issue
Block a user