aboutsummaryrefslogtreecommitdiffstats
path: root/core/consensus.go
diff options
context:
space:
mode:
authorJimmy Hu <jimmy.hu@dexon.org>2019-01-24 11:49:25 +0800
committerGitHub <noreply@github.com>2019-01-24 11:49:25 +0800
commitb6ca251bcb6e1a19a7276afe68bf37a4372670fa (patch)
treeb1aac8e9759f150d58009020cd92b579e766895c /core/consensus.go
parent779f63a9f6fc3f4c628f0b97c822546ac51d0eb6 (diff)
downloaddexon-consensus-b6ca251bcb6e1a19a7276afe68bf37a4372670fa.tar
dexon-consensus-b6ca251bcb6e1a19a7276afe68bf37a4372670fa.tar.gz
dexon-consensus-b6ca251bcb6e1a19a7276afe68bf37a4372670fa.tar.bz2
dexon-consensus-b6ca251bcb6e1a19a7276afe68bf37a4372670fa.tar.lz
dexon-consensus-b6ca251bcb6e1a19a7276afe68bf37a4372670fa.tar.xz
dexon-consensus-b6ca251bcb6e1a19a7276afe68bf37a4372670fa.tar.zst
dexon-consensus-b6ca251bcb6e1a19a7276afe68bf37a4372670fa.zip
core: Add vote filter (#430)
* core: ignore usless vote * core: export SkipBlockHash and NullBlockHash * core: add VoteFilter * Add test * New VoteFilter for each round
Diffstat (limited to 'core/consensus.go')
-rw-r--r--core/consensus.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/consensus.go b/core/consensus.go
index e8d1d61..3a27b5f 100644
--- a/core/consensus.go
+++ b/core/consensus.go
@@ -99,7 +99,7 @@ func (recv *consensusBAReceiver) ProposeBlock() common.Hash {
block := recv.consensus.proposeBlock(recv.chainID, recv.round())
if block == nil {
recv.consensus.logger.Error("unable to propose block")
- return nullBlockHash
+ return types.NullBlockHash
}
go func() {
if err := recv.consensus.preProcessBlock(block); err != nil {