diff options
author | Mission Liao <mission.liao@dexon.org> | 2019-01-08 18:24:18 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-08 18:24:18 +0800 |
commit | 9e9ed5ed358f428709b70eb50352bb01a4cf4f7b (patch) | |
tree | bcf47a042b6669471a4f5d31745ea77d002d9b35 /core | |
parent | 87140e484160e3bec8ee6c26dde80ca8e99efbd3 (diff) | |
download | dexon-consensus-9e9ed5ed358f428709b70eb50352bb01a4cf4f7b.tar dexon-consensus-9e9ed5ed358f428709b70eb50352bb01a4cf4f7b.tar.gz dexon-consensus-9e9ed5ed358f428709b70eb50352bb01a4cf4f7b.tar.bz2 dexon-consensus-9e9ed5ed358f428709b70eb50352bb01a4cf4f7b.tar.lz dexon-consensus-9e9ed5ed358f428709b70eb50352bb01a4cf4f7b.tar.xz dexon-consensus-9e9ed5ed358f428709b70eb50352bb01a4cf4f7b.tar.zst dexon-consensus-9e9ed5ed358f428709b70eb50352bb01a4cf4f7b.zip |
syncer: skip error (#412)
This error would always be raised when trying to
sync from consensusHeight == 0. However, this
error is mostly meaningless to fullnode, they
just need to retry it later.
Diffstat (limited to 'core')
-rw-r--r-- | core/syncer/consensus.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/syncer/consensus.go b/core/syncer/consensus.go index e18295a..306017f 100644 --- a/core/syncer/consensus.go +++ b/core/syncer/consensus.go @@ -469,6 +469,10 @@ func (con *Consensus) SyncBlocks( var syncBlock *types.Block syncBlock, err = con.findLatticeSyncBlock(blocks) if err != nil { + if err == ErrGenesisBlockReached { + con.logger.Debug("SyncBlocks skip error", "error", err) + err = nil + } return } if syncBlock != nil { |