File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -71,14 +71,17 @@ export class FullSynchronizer extends Synchronizer {
71
71
let oldHead = Buffer . alloc ( 0 )
72
72
const newHeadBlock = await this . vm . blockchain . getHead ( )
73
73
let newHead = newHeadBlock . hash ( )
74
- const firstHeadBlock = newHeadBlock
74
+ let firstHeadBlock = newHeadBlock
75
75
let lastHeadBlock = newHeadBlock
76
76
while ( ! newHead . equals ( oldHead ) && ! this . stopSyncing ) {
77
77
oldHead = newHead
78
78
this . vmPromise = this . vm . runBlockchain ( this . vm . blockchain , 1 )
79
79
await this . vmPromise
80
80
const headBlock = await this . vm . blockchain . getHead ( )
81
81
newHead = headBlock . hash ( )
82
+ if ( blockCounter === 0 ) {
83
+ firstHeadBlock = headBlock
84
+ }
82
85
// check if we did run a new block:
83
86
if ( ! newHead . equals ( oldHead ) ) {
84
87
blockCounter += 1
You can’t perform that action at this time.
0 commit comments