Skip to content
Open
Show file tree
Hide file tree
Changes from 17 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Perf

### 2026-02-10

- Refactor storage download to use `StorageTrieTracker` [#6171](https://github.com/lambdaclass/ethrex/pull/6171)

### 2026-02-06

- Defer KZG blob proof verification from P2P to mempool insertion [#6150](https://github.com/lambdaclass/ethrex/pull/6150)
Expand Down
2 changes: 1 addition & 1 deletion crates/networking/p2p/discv4/peer_table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@ impl PeerTableServer {
// and amount of inflight requests
fn can_try_more_requests(&self, score: &i64, requests: &i64) -> bool {
let score_ratio = (score - MIN_SCORE) as f64 / (MAX_SCORE - MIN_SCORE) as f64;
(*requests as f64) < MAX_CONCURRENT_REQUESTS_PER_PEER as f64 * score_ratio
(*requests as f64) <= MAX_CONCURRENT_REQUESTS_PER_PEER as f64 * score_ratio
}

fn get_best_peer(&self, capabilities: &[Capability]) -> Option<(H256, PeerConnection)> {
Expand Down
2 changes: 1 addition & 1 deletion crates/networking/p2p/discv5/peer_table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -701,7 +701,7 @@ impl PeerTableServer {
// and amount of inflight requests
fn can_try_more_requests(&self, score: &i64, requests: &i64) -> bool {
let score_ratio = (score - MIN_SCORE) as f64 / (MAX_SCORE - MIN_SCORE) as f64;
(*requests as f64) < MAX_CONCURRENT_REQUESTS_PER_PEER as f64 * score_ratio
(*requests as f64) <= MAX_CONCURRENT_REQUESTS_PER_PEER as f64 * score_ratio
}

fn get_best_peer(&self, capabilities: &[Capability]) -> Option<(H256, PeerConnection)> {
Expand Down
Loading
Loading