|
|
|
@ -67,6 +67,7 @@ type StagedStreamSync struct { |
|
|
|
|
protocol syncProtocol |
|
|
|
|
isBeaconNode bool |
|
|
|
|
gbm *blockDownloadManager // initialized when finished get block number
|
|
|
|
|
rdm *receiptDownloadManager |
|
|
|
|
lastMileBlocks []*types.Block // last mile blocks to catch up with the consensus
|
|
|
|
|
lastMileMux sync.Mutex |
|
|
|
|
inserted int |
|
|
|
@ -75,7 +76,6 @@ type StagedStreamSync struct { |
|
|
|
|
status *status //TODO: merge this with currentSyncCycle
|
|
|
|
|
initSync bool // if sets to true, node start long range syncing
|
|
|
|
|
UseMemDB bool |
|
|
|
|
|
|
|
|
|
revertPoint *uint64 // used to run stages
|
|
|
|
|
prevRevertPoint *uint64 // used to get value from outside of staged sync after cycle (for example to notify RPCDaemon)
|
|
|
|
|
invalidBlock InvalidBlock |
|
|
|
|