Skip to content

Commit 9cc2ec7

Browse files
committed
devp2p, client -> DPT: fixed DPT.bootstrap() error propagation handling in client (fixes wrongly propagated timeout error on bootnodes)
1 parent 2b2c0c2 commit 9cc2ec7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

packages/client/lib/net/server/rlpxserver.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -126,13 +126,13 @@ export class RlpxServer extends Server {
126126
udpPort: node.port,
127127
tcpPort: node.port,
128128
}
129-
try {
130-
return this.dpt!.bootstrap(bootnode)
131-
} catch (e) {
132-
this.error(e)
133-
}
129+
return this.dpt!.bootstrap(bootnode)
134130
})
135-
await Promise.all(promises)
131+
try {
132+
await Promise.all(promises)
133+
} catch (e) {
134+
this.error(e)
135+
}
136136
}
137137

138138
/**

0 commit comments

Comments
 (0)