mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-11 20:01:08 +00:00
fix master: use view.iter() instead of view.heads (#2510)
This commit is contained in:
committed by
GitHub
parent
3300b53306
commit
5683f11628
@@ -164,7 +164,7 @@ impl State {
|
||||
self.handle_peer_view_change(ctx, peer_id, view).await;
|
||||
}
|
||||
NetworkBridgeEvent::OurViewChange(view) => {
|
||||
for head in &view.heads {
|
||||
for head in view.iter() {
|
||||
if !self.blocks.contains_key(head) {
|
||||
self.pending_known.entry(*head).or_default();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user