diff options
author | Jimmy Hu <jimmy.hu@dexon.org> | 2019-04-22 17:25:34 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-22 17:25:34 +0800 |
commit | ff246f8ac36d7bbbb8323026c457200d66c07889 (patch) | |
tree | 071a435a0e1791da145a7f373948d7c4ee8023f7 | |
parent | 6ab10aadc24193b1366bb1f048b92c1a6aec4861 (diff) | |
download | dexon-consensus-ff246f8ac36d7bbbb8323026c457200d66c07889.tar dexon-consensus-ff246f8ac36d7bbbb8323026c457200d66c07889.tar.gz dexon-consensus-ff246f8ac36d7bbbb8323026c457200d66c07889.tar.bz2 dexon-consensus-ff246f8ac36d7bbbb8323026c457200d66c07889.tar.lz dexon-consensus-ff246f8ac36d7bbbb8323026c457200d66c07889.tar.xz dexon-consensus-ff246f8ac36d7bbbb8323026c457200d66c07889.tar.zst dexon-consensus-ff246f8ac36d7bbbb8323026c457200d66c07889.zip |
core: prevent vote being filtered (#576)
-rw-r--r-- | core/agreement.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/agreement.go b/core/agreement.go index 2215394..d90afc6 100644 --- a/core/agreement.go +++ b/core/agreement.go @@ -436,8 +436,9 @@ func (a *agreement) processVote(vote *types.Vote) error { vote: vote, receivedTime: time.Now().UTC(), }) + return nil } - return nil + return ErrSkipButNoError } if vote.Position != aID { if aID.Newer(vote.Position) { |