Skip to content

Commit

Permalink
remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
j75689 committed Apr 20, 2022
1 parent c57fdd7 commit e0cf707
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions core/remote_state_verifier.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,17 +189,9 @@ func (vm *remoteVerifyManager) NewBlockVerifyTask(header *types.Header) {
diffLayer = vm.bc.GetTrustedDiffLayer(hash)
}
// if this block has no diff, there is no need to verify it.
var err error
if diffLayer == nil {
log.Info("block's trusted diffLayer is nil", "hash", hash, "number", header.Number)
//if diffLayer, err = vm.bc.GenerateDiffLayer(hash); err != nil {
// log.Error("failed to get diff layer", "block", hash, "number", header.Number, "error", err)
// return
//} else if diffLayer == nil {
// log.Info("this is an empty block:", "block", hash, "number", header.Number)
// vm.cacheBlockVerified(hash)
// return
//}
return
}
diffHash, err := CalculateDiffHash(diffLayer)
if err != nil {
Expand Down

0 comments on commit e0cf707

Please sign in to comment.