Skip to content

Commit

Permalink
dccs: only tracing log for known issue (ethereum#242)
Browse files Browse the repository at this point in the history
* dccs: only tracing log for known issue

* dccs: correct a log message
  • Loading branch information
hadv committed Jul 2, 2019
1 parent 9a91701 commit 0241bfd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions consensus/dccs/dccs.go
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,7 @@ func (d *Dccs) snapshot2(chain consensus.ChainReader, number uint64, hash common
// Get signers from Nexty staking smart contract at the latest epoch checkpoint from block number
checkpoint := chain.GetHeaderByNumber(cp)
if checkpoint == nil {
log.Error("snapshot header not available", "number", cp)
log.Trace("snapshot header not available", "number", cp)
continue
}
hash := checkpoint.Hash()
Expand All @@ -577,12 +577,12 @@ func (d *Dccs) snapshot2(chain consensus.ChainReader, number uint64, hash common
}
state, err := chain.StateAt(checkpoint.Root)
if state == nil || err != nil {
log.Error("snapshot state not available", "number", cp, "err", err)
log.Trace("snapshot state not available", "number", cp, "err", err)
continue
}
size := state.GetCodeSize(chain.Config().Dccs.Contract)
if size <= 0 || state.Error() != nil {
log.Error("snapshot state not available", "number", cp, "err", state.Error())
log.Trace("snapshot contract state not available", "number", cp, "err", state.Error())
continue
}
index := common.BigToHash(common.Big0)
Expand Down

0 comments on commit 0241bfd

Please sign in to comment.