Skip to content

Commit

Permalink
doc: fix code comments, println
Browse files Browse the repository at this point in the history
  • Loading branch information
rustaceanrob committed Jun 17, 2024
1 parent e7afe5a commit 8209b81
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/chain/chain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@ impl Chain {
}
}

//
// Clear the filter header cache to rescan the filters for new scripts.
pub(crate) async fn clear_filters(&mut self) {
self.filter_chain.clear_cache().await;
}
Expand Down
4 changes: 2 additions & 2 deletions src/node/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,7 @@ impl Node {
}
}

// First we seach the whitelist for peers that we trust. Then, depending on the state
// First we search the whitelist for peers that we trust. Then, depending on the state
// we either need to catch up on block headers or we may start requesting filters and blocks.
// When requesting filters, we try to select peers that have signaled for CF support.
async fn next_peer(&mut self) -> Result<(IpAddr, Option<u16>), NodeError> {
Expand Down Expand Up @@ -645,7 +645,7 @@ impl Node {
}

async fn any_peer(&mut self) -> Result<(IpAddr, Option<u16>), NodeError> {
// Rmpty the whitelist, if there is one
// Empty the whitelist, if there is one
if let Some(whitelist) = &mut self.white_list {
if let Some((ip, port)) = whitelist.pop() {
return {
Expand Down
1 change: 0 additions & 1 deletion src/peers/peer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ impl Peer {
return Ok(());
}
if self.message_counter.unsolicited() {
println!("oh no");
return Ok(());
}
select! {
Expand Down

0 comments on commit 8209b81

Please sign in to comment.