From 43bc25d04af5d3cbef87b497eeb3af533b761cce Mon Sep 17 00:00:00 2001 From: Jakub Sztandera Date: Tue, 10 Dec 2019 14:45:15 +0100 Subject: [PATCH] Fix edge case License: MIT Signed-off-by: Jakub Sztandera --- chain/messagepool/messagepool.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/chain/messagepool/messagepool.go b/chain/messagepool/messagepool.go index 7367f1dbc..d62ae1669 100644 --- a/chain/messagepool/messagepool.go +++ b/chain/messagepool/messagepool.go @@ -212,6 +212,9 @@ func (mp *MessagePool) repubLocal() { curNonce := a.Nonce for _, m := range msgs { + if m.Message.Nonce < curNonce { + continue + } if m.Message.Nonce != curNonce { break }