Skip to content

Commit

Permalink
doc changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Boog900 committed Jun 12, 2024
1 parent 002df61 commit 8fb1406
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion p2p/cuprate-p2p/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ monero-wire = { path = "../../net/monero-wire" }
monero-p2p = { path = "../monero-p2p", features = ["borsh"] }
monero-address-book = { path = "../address-book" }
monero-pruning = { path = "../../pruning" }
cuprate-helper = { path = "../../helper", features = ["asynch"] }
cuprate-helper = { path = "../../helper", features = ["asynch"], default-features = false }
async-buffer = { path = "../async-buffer" }

monero-serai = { workspace = true, features = ["std"] }
Expand Down
2 changes: 1 addition & 1 deletion p2p/cuprate-p2p/src/bin/test_init.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ async fn main() {

let config = P2PConfig::<ClearNet> {
network: Default::default(),
outbound_connections: 1,
outbound_connections: 64,
extra_outbound_connections: 32,
max_inbound_connections: 128,
gray_peers_percent: 0.7,
Expand Down
6 changes: 3 additions & 3 deletions p2p/cuprate-p2p/src/block_downloader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -341,8 +341,8 @@ where

/// Attempts to send another request for an inflight batch
///
/// This function will find the oldest batch that has had the least amount of requests sent for it
/// and will then attempt to send another request for it.
/// This function will find the batch(es) that we are waiting on to clear our ready queue and sends another request
/// for them.
///
/// Returns the [`ClientPoolDropGuard`] back if it doesn't have the batch according to it's pruning seed.
async fn request_inflight_batch_again(
Expand Down Expand Up @@ -496,7 +496,7 @@ where
if self.chain_entry_task.len() < 2
// If we have had too many failures then assume the tip has been found so no more chain entries.
&& self.amount_of_empty_chain_entries <= EMPTY_CHAIN_ENTRIES_BEFORE_TOP_ASSUMED
// Check we have a nice buffer of pending block IDs to retrieve, we don't want to be waiting around
// Check we have a big buffer of pending block IDs to retrieve, we don't want to be waiting around
// for a chain entry.
&& chain_tracker.block_requests_queued(self.amount_of_blocks_to_request) < 500
// Make sure this peer actually has the chain.
Expand Down
2 changes: 1 addition & 1 deletion p2p/monero-p2p/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ default = ["borsh"]
borsh = ["dep:borsh", "monero-pruning/borsh"]

[dependencies]
cuprate-helper = { path = "../../helper", features = ["asynch"] }
cuprate-helper = { path = "../../helper", features = ["asynch"], default-features = false }
monero-wire = { path = "../../net/monero-wire", features = ["tracing"] }
monero-pruning = { path = "../../pruning" }

Expand Down

0 comments on commit 8fb1406

Please sign in to comment.