From a10fb3e2cf82782da2d8d69c2b0a6209c11d82b8 Mon Sep 17 00:00:00 2001 From: Jimmy Hu Date: Tue, 9 Apr 2019 11:17:03 +0800 Subject: core: remove payload from reportForkBlock (#555) --- core/consensus.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'core/consensus.go') 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. -- cgit v1.2.3