Skip to content

Commit 1e6d1c9

Browse files
committed
client: more generous protocol timeout for better support of slower internet connections
1 parent 8b589f0 commit 1e6d1c9

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ export class RlpxServer extends Server {
122122
async bootstrap(): Promise<void> {
123123
const promises = this.bootnodes.map((node) => {
124124
const bootnode = {
125-
address: node.ip,
125+
address: node.ip!,
126126
udpPort: node.port,
127127
tcpPort: node.port,
128128
}

packages/client/lib/service/ethereumservice.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ export interface EthereumServiceOptions extends ServiceOptions {
1111
/* Blockchain database */
1212
db?: LevelUp
1313

14-
/* Protocol timeout in ms (default: 8000) */
15-
timeout?: number
16-
17-
/* Sync retry interval in ms (default: 1000) */
14+
/* Sync retry interval in ms (default: 8000) */
1815
interval?: number
16+
17+
/* Protocol timeout in ms (default: 2000) */
18+
timeout?: number
1919
}
2020

2121
/**
@@ -39,7 +39,7 @@ export class EthereumService extends Service {
3939
this.flow = new FlowControl()
4040
this.chain = options.chain ?? new Chain(options)
4141
this.interval = options.interval ?? 8000
42-
this.timeout = options.timeout ?? 1000
42+
this.timeout = options.timeout ?? 2000
4343
}
4444

4545
/**

0 commit comments

Comments
 (0)