forked from TrueCloudLab/neoneo-go
core: don't print persisting errors twice
As they're already printed in the calling goroutine. And they're alse not always useful when printed by Persist().
This commit is contained in:
parent
102c926ef3
commit
4b4bac675b
1 changed files with 0 additions and 1 deletions
|
@ -414,7 +414,6 @@ func (bc *Blockchain) Persist(ctx context.Context) (err error) {
|
||||||
hash := headerList.Get(int(bc.BlockHeight() + 1))
|
hash := headerList.Get(int(bc.BlockHeight() + 1))
|
||||||
if block, ok := bc.blockCache.GetBlock(hash); ok {
|
if block, ok := bc.blockCache.GetBlock(hash); ok {
|
||||||
if err = bc.persistBlock(block); err != nil {
|
if err = bc.persistBlock(block); err != nil {
|
||||||
log.Warnf("failed to persist blocks: %s", err)
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
bc.blockCache.Delete(hash)
|
bc.blockCache.Delete(hash)
|
||||||
|
|
Loading…
Reference in a new issue