Skip to content

Commit

Permalink
network/addBootNode: ask for nodes in non-empty buckets
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottyPoi committed Dec 18, 2024
1 parent 5c4daa0 commit 0e73ed8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/portalnetwork/src/networks/network.ts
Original file line number Diff line number Diff line change
Expand Up @@ -827,7 +827,7 @@ export abstract class BaseNetwork extends EventEmitter {
if (pong !== undefined) {
for (let x = 239; x < 256; x++) {
// Ask for nodes in all log2distances 239 - 256
if (this.routingTable.valuesOfDistance(x).length === 0) {
if (this.routingTable.valuesOfDistance(x).length < 16 ) {
await this.sendFindNodes(enr, [x])
}
}
Expand Down

0 comments on commit 0e73ed8

Please sign in to comment.