Skip to content

Commit

Permalink
change has_bodies_request_started to only check current bodies request
Browse files Browse the repository at this point in the history
  • Loading branch information
Rjected committed Jul 3, 2023
1 parent 3cdb080 commit 4539e76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/interfaces/src/p2p/full_block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -417,9 +417,9 @@ where
}

/// Returns whether or not a bodies request has been started, returning false if there is no
/// pending request, and if there is no buffered response.
/// pending request.
fn has_bodies_request_started(&self) -> bool {
self.request.bodies.is_some() && !self.bodies.is_empty()
self.request.bodies.is_some()
}
}

Expand Down

0 comments on commit 4539e76

Please sign in to comment.