aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/github.com
diff options
context:
space:
mode:
authorJimmy Hu <jimmy.hu@dexon.org>2019-04-13 23:11:31 +0800
committerWei-Ning Huang <w@byzantine-lab.io>2019-06-15 22:09:55 +0800
commitca03d047f0e86bbf7655a2f81a06f2d30a66034c (patch)
tree9f2a81321ce416e0e7bcc4218277f42c0291e1cc /vendor/github.com
parentc0442fcd0a65acbe6e7b32316e8531863838a365 (diff)
downloadgo-tangerine-ca03d047f0e86bbf7655a2f81a06f2d30a66034c.tar
go-tangerine-ca03d047f0e86bbf7655a2f81a06f2d30a66034c.tar.gz
go-tangerine-ca03d047f0e86bbf7655a2f81a06f2d30a66034c.tar.bz2
go-tangerine-ca03d047f0e86bbf7655a2f81a06f2d30a66034c.tar.lz
go-tangerine-ca03d047f0e86bbf7655a2f81a06f2d30a66034c.tar.xz
go-tangerine-ca03d047f0e86bbf7655a2f81a06f2d30a66034c.tar.zst
go-tangerine-ca03d047f0e86bbf7655a2f81a06f2d30a66034c.zip
vendor: sync to latest core
Diffstat (limited to 'vendor/github.com')
-rw-r--r--vendor/github.com/dexon-foundation/dexon-consensus/core/consensus.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/vendor/github.com/dexon-foundation/dexon-consensus/core/consensus.go b/vendor/github.com/dexon-foundation/dexon-consensus/core/consensus.go
index ec15bf32d..968b90e99 100644
--- a/vendor/github.com/dexon-foundation/dexon-consensus/core/consensus.go
+++ b/vendor/github.com/dexon-foundation/dexon-consensus/core/consensus.go
@@ -93,13 +93,23 @@ func (recv *consensusBAReceiver) VerifyPartialSignature(vote *types.Vote) bool {
if vote.Position.Round >= DKGDelayRound && vote.BlockHash != types.SkipBlockHash {
if vote.Type == types.VoteCom || vote.Type == types.VoteFastCom {
if recv.npks == nil {
+ recv.consensus.logger.Debug(
+ "Unable to verify psig, npks is nil",
+ "vote", vote)
return false
}
if vote.Position.Round != recv.npks.Round {
+ recv.consensus.logger.Debug(
+ "Unable to verify psig, round of npks mismatch",
+ "vote", vote,
+ "npksRound", recv.npks.Round)
return false
}
pubKey, exist := recv.npks.PublicKeys[vote.ProposerID]
if !exist {
+ recv.consensus.logger.Debug(
+ "Unable to verify psig, proposer is not qualified",
+ "vote", vote)
return false
}
blockHash := vote.BlockHash