Unverified Commit c14f794d authored by asynchronous rob's avatar asynchronous rob Committed by GitHub
Browse files

fix master: use view.iter() instead of view.heads (#2510)

parent 1e2b8ae5
Pipeline #125440 passed with stages
in 32 minutes and 38 seconds
......@@ -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();
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment