File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ export class ETH extends EventEmitter {
41
41
// Set forkHash and nextForkBlock
42
42
if ( this . _version >= 64 ) {
43
43
const c = this . _peer . _common
44
- this . _hardfork = c . hardfork ( ) ? ( c . hardfork ( ) as string ) : this . _hardfork
44
+ this . _hardfork = c . hardfork ( ) ? c . hardfork ( ) : this . _hardfork
45
45
// Set latestBlock minimally to start block of fork to have some more
46
46
// accurate basis if no latestBlock is provided along status send
47
47
this . _latestBlock = c . hardforkBlock ( this . _hardfork )
@@ -208,7 +208,7 @@ export class ETH extends EventEmitter {
208
208
this . _latestBlock = status . latestBlock
209
209
}
210
210
const forkHashB = Buffer . from ( this . _forkHash . substr ( 2 ) , 'hex' )
211
- const nextForkB = Buffer . from ( this . _nextForkBlock . toString ( 16 ) , 'hex' )
211
+ const nextForkB = int2buffer ( this . _nextForkBlock )
212
212
this . _status . push ( [ forkHashB , nextForkB ] )
213
213
}
214
214
You can’t perform that action at this time.
0 commit comments