diff options
author | Jimmy Hu <jimmy.hu@dexon.org> | 2019-03-30 00:38:41 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-04-09 13:50:05 +0800 |
commit | 9fc602fc03a22679e361282aefb6e65f19ac18c5 (patch) | |
tree | 43662138816e4d31ee5fd6d2ab31bc5a5f1b6ab6 | |
parent | 398c9515865b0acfe8a55752d30250678d5f7009 (diff) | |
download | dexon-9fc602fc03a22679e361282aefb6e65f19ac18c5.tar.gz dexon-9fc602fc03a22679e361282aefb6e65f19ac18c5.tar.zst dexon-9fc602fc03a22679e361282aefb6e65f19ac18c5.zip |
dex: fix a panic (#317)
-rw-r--r-- | dex/blockproposer.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dex/blockproposer.go b/dex/blockproposer.go index 65f9f9e30..846e65617 100644 --- a/dex/blockproposer.go +++ b/dex/blockproposer.go @@ -199,9 +199,9 @@ ListenLoop: select { case ev := <-ch: blocks := blocksToSync(coreHeight, ev.Block.NumberU64()) - b.watchCat.Feed(blocks[len(blocks)-1].Position) if len(blocks) > 0 { + b.watchCat.Feed(blocks[len(blocks)-1].Position) log.Debug("Filling compaction chain", "num", len(blocks), "first", blocks[0].Finalization.Height, "last", blocks[len(blocks)-1].Finalization.Height) |