Skip to content

Commit

Permalink
don't need to send verify task when node start
Browse files Browse the repository at this point in the history
  • Loading branch information
j75689 committed Apr 20, 2022
1 parent e0cf707 commit 2e6c33b
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions core/remote_state_verifier.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,6 @@ func NewVerifyManager(blockchain *BlockChain, peers verifyPeers, allowInsecure b
func (vm *remoteVerifyManager) mainLoop() {
defer vm.chainHeadSub.Unsubscribe()

// load unverified blocks in a normalized chain and start a batch of verify task
header := vm.bc.CurrentHeader()
// Start verify task from H to H-11 if need.
vm.NewBlockVerifyTask(header)
pruneTicker := time.NewTicker(pruneInterval)
defer pruneTicker.Stop()
for {
Expand Down

0 comments on commit 2e6c33b

Please sign in to comment.