Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
unclezoro committed Sep 1, 2021
1 parent b8d6373 commit 2ae0ddf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions cmd/geth/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ var (
utils.ExternalSignerFlag,
utils.NoUSBFlag,
utils.DirectBroadcastFlag,
utils.LightSyncFlag,
utils.RangeLimitFlag,
utils.USBFlag,
utils.SmartCardDaemonPathFlag,
Expand Down Expand Up @@ -114,6 +115,7 @@ var (
utils.CacheGCFlag,
utils.CacheSnapshotFlag,
utils.CachePreimagesFlag,
utils.PersistDiffFlag,
utils.ListenPortFlag,
utils.MaxPeersFlag,
utils.MaxPendingPeersFlag,
Expand Down
4 changes: 2 additions & 2 deletions core/state_processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,10 @@ func (p *LightStateProcessor) Process(block *types.Block, statedb *state.StateDB
}
receipts, logs, gasUsed, err := p.LightProcess(diffLayer, block, statedb, cfg)
if err == nil {
log.Error("do light process success at block %d\n", block.NumberU64())
log.Info("do light process success at block", "num", block.NumberU64())
return statedb, receipts, logs, gasUsed, nil
} else {
log.Error("do light process err %d, %v\n", block.NumberU64(), err)
log.Error("do light process err at block\n", "num", block.NumberU64(), "err", err)
p.bc.removeDiffLayers(diffLayer.DiffHash)
// prepare new statedb
statedb.StopPrefetcher()
Expand Down

0 comments on commit 2ae0ddf

Please sign in to comment.