aboutsummaryrefslogtreecommitdiffstats
path: root/core/consensus.go
diff options
context:
space:
mode:
authorJimmy Hu <jimmy.hu@dexon.org>2019-04-09 11:17:03 +0800
committerGitHub <noreply@github.com>2019-04-09 11:17:03 +0800
commita10fb3e2cf82782da2d8d69c2b0a6209c11d82b8 (patch)
tree9e67cf4e7077ca36929939965b8311a60624510a /core/consensus.go
parent26c83d1cd15ab9225cb13d7324ac721b00a3fcd1 (diff)
downloadtangerine-consensus-a10fb3e2cf82782da2d8d69c2b0a6209c11d82b8.tar
tangerine-consensus-a10fb3e2cf82782da2d8d69c2b0a6209c11d82b8.tar.gz
tangerine-consensus-a10fb3e2cf82782da2d8d69c2b0a6209c11d82b8.tar.bz2
tangerine-consensus-a10fb3e2cf82782da2d8d69c2b0a6209c11d82b8.tar.lz
tangerine-consensus-a10fb3e2cf82782da2d8d69c2b0a6209c11d82b8.tar.xz
tangerine-consensus-a10fb3e2cf82782da2d8d69c2b0a6209c11d82b8.tar.zst
tangerine-consensus-a10fb3e2cf82782da2d8d69c2b0a6209c11d82b8.zip
core: remove payload from reportForkBlock (#555)
Diffstat (limited to 'core/consensus.go')
-rw-r--r--core/consensus.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/core/consensus.go b/core/consensus.go
index 6c300c9..f1a383b 100644
--- a/core/consensus.go
+++ b/core/consensus.go
@@ -383,7 +383,11 @@ func (recv *consensusBAReceiver) ReportForkVote(v1, v2 *types.Vote) {
}
func (recv *consensusBAReceiver) ReportForkBlock(b1, b2 *types.Block) {
- recv.consensus.gov.ReportForkBlock(b1, b2)
+ b1Clone := b1.Clone()
+ b2Clone := b2.Clone()
+ b1Clone.Payload = []byte{}
+ b2Clone.Payload = []byte{}
+ recv.consensus.gov.ReportForkBlock(b1Clone, b2Clone)
}
// consensusDKGReceiver implements dkgReceiver.