mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 14:01:06 +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:
@@ -1257,7 +1257,7 @@ async fn handle_approved_ancestor(
|
||||
|
||||
let mut block_descriptions = Vec::new();
|
||||
|
||||
let mut bits: BitVec<Lsb0, u8> = Default::default();
|
||||
let mut bits: BitVec<u8, Lsb0> = Default::default();
|
||||
for (i, block_hash) in std::iter::once(target).chain(ancestry).enumerate() {
|
||||
// Block entries should be present as the assumption is that
|
||||
// nothing here is finalized. If we encounter any missing block
|
||||
@@ -1344,7 +1344,7 @@ async fn handle_approved_ancestor(
|
||||
let n_approvals = c_entry
|
||||
.approvals()
|
||||
.iter()
|
||||
.by_val()
|
||||
.by_vals()
|
||||
.enumerate()
|
||||
.filter(|(i, approved)| {
|
||||
*approved && a_entry.is_assigned(ValidatorIndex(*i as _))
|
||||
|
||||
Reference in New Issue
Block a user