File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ export interface EthereumServiceOptions extends ServiceOptions {
17
17
/* Sync retry interval in ms (default: 8000) */
18
18
interval ?: number
19
19
20
- /* Protocol timeout in ms (default: 2000 ) */
20
+ /* Protocol timeout in ms (default: 4000 ) */
21
21
timeout ?: number
22
22
}
23
23
@@ -42,7 +42,7 @@ export class EthereumService extends Service {
42
42
this . flow = new FlowControl ( )
43
43
this . chain = options . chain ?? new Chain ( options )
44
44
this . interval = options . interval ?? 8000
45
- this . timeout = options . timeout ?? 2000
45
+ this . timeout = options . timeout ?? 4000
46
46
}
47
47
48
48
/**
Original file line number Diff line number Diff line change @@ -178,7 +178,7 @@ export class DPT extends EventEmitter {
178
178
for ( const peer of peers ) {
179
179
// Randomly distributed selector based on peer ID
180
180
// to decide on subdivided execution
181
- const selector = buffer2int ( peer . id . slice ( 0 , 1 ) ) % 10
181
+ const selector = buffer2int ( ( ( peer . id ) ! as Buffer ) . slice ( 0 , 1 ) ) % 10
182
182
if ( selector === this . _refreshIntervalSelectionCounter ) {
183
183
this . _server . findneighbours ( peer , randomBytes ( 64 ) )
184
184
}
You can’t perform that action at this time.
0 commit comments