From b6ca251bcb6e1a19a7276afe68bf37a4372670fa Mon Sep 17 00:00:00 2001 From: Jimmy Hu Date: Thu, 24 Jan 2019 11:49:25 +0800 Subject: core: Add vote filter (#430) * core: ignore usless vote * core: export SkipBlockHash and NullBlockHash * core: add VoteFilter * Add test * New VoteFilter for each round --- core/consensus.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/consensus.go') 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 { -- cgit v1.2.3