mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 02:51:01 +00:00
Companion to "Updating scale to v3" (#4958)
* Updating dependencies * Adapting code to scale v3 * Upgrade bitvec to 1.0.0 * Fix bitvec arithmetics * Update Cargo.lock * Update sp-io * Fixing the build * Yanked scale-info 2.0.0 Co-authored-by: Bastian Köcher <info@kchr.de>
This commit is contained in:
@@ -339,8 +339,8 @@ struct PvfCheckActiveVoteState<BlockNumber> {
|
||||
// makes a vote. Once a 1 is set for either of the vectors, that validator cannot vote anymore.
|
||||
// Since the active validator set changes each session, the bit vectors are reinitialized as
|
||||
// well: zeroed and resized so that each validator gets its own bit.
|
||||
votes_accept: BitVec<BitOrderLsb0, u8>,
|
||||
votes_reject: BitVec<BitOrderLsb0, u8>,
|
||||
votes_accept: BitVec<u8, BitOrderLsb0>,
|
||||
votes_reject: BitVec<u8, BitOrderLsb0>,
|
||||
|
||||
/// The number of session changes this PVF vote has observed. Therefore, this number is
|
||||
/// increased at each session boundary. When created, it is initialized with 0.
|
||||
@@ -359,8 +359,8 @@ impl<BlockNumber> PvfCheckActiveVoteState<BlockNumber> {
|
||||
causes.push(cause);
|
||||
Self {
|
||||
created_at: now,
|
||||
votes_accept: bitvec::bitvec![BitOrderLsb0, u8; 0; n_validators],
|
||||
votes_reject: bitvec::bitvec![BitOrderLsb0, u8; 0; n_validators],
|
||||
votes_accept: bitvec::bitvec![u8, BitOrderLsb0; 0; n_validators],
|
||||
votes_reject: bitvec::bitvec![u8, BitOrderLsb0; 0; n_validators],
|
||||
age: 0,
|
||||
causes,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user