Skip to content

Commit 753fd4b

Browse files
ngotchac5chdn
authored andcommitted
Improve P2P discovery (openethereum#9526)
* Add `target` to Rust traces * network-devp2p: Don't remove discovery peer in main sync * network-p2p: Refresh discovery more often * Update Peer discovery protocol * Run discovery more often when not enough nodes connected * Start the first discovery early * Update fast discovery rate * Fix tests * Fix `ping` tests * Fixing remote Node address ; adding PingPong round * Fix tests: update new +1 PingPong round * Increase slow Discovery rate Check in flight FindNode before pings * Add `deprecated` to deprecated_echo_hash * Refactor `discovery_round` branching
1 parent 57d2c8c commit 753fd4b

File tree

4 files changed

+248
-156
lines changed

4 files changed

+248
-156
lines changed

ethcore/sync/src/chain/propagator.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ impl SyncPropagator {
200200
let appended = packet.append_raw_checked(&transaction.drain(), 1, MAX_TRANSACTION_PACKET_SIZE);
201201
if !appended {
202202
// Maximal packet size reached just proceed with sending
203-
debug!("Transaction packet size limit reached. Sending incomplete set of {}/{} transactions.", pushed, to_send.len());
203+
debug!(target: "sync", "Transaction packet size limit reached. Sending incomplete set of {}/{} transactions.", pushed, to_send.len());
204204
to_send = to_send.into_iter().take(pushed).collect();
205205
break;
206206
}

0 commit comments

Comments
 (0)