From 96fcee4688dacd812292376994a3500e2c78edeb Mon Sep 17 00:00:00 2001 From: Jimmy Hu Date: Thu, 16 Aug 2018 10:22:54 +0800 Subject: core: Add compaction chain module. (#60) --- core/types/block.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'core/types/block.go') diff --git a/core/types/block.go b/core/types/block.go index 15fae8b..0fa16d4 100644 --- a/core/types/block.go +++ b/core/types/block.go @@ -40,9 +40,9 @@ const ( // CompactionChainAck represents the acking to the compaction chain. type CompactionChainAck struct { AckingBlockHash common.Hash `json:"acking_block_hash"` - // Signature is the signature of the hash value of + // ConsensusInfoSignature is the signature of the hash value of // Block.ConsensusInfoParentHash and Block.ConsensusInfo. - ConsensusSignature crypto.Signature `json:"consensus_signature"` + ConsensusInfoSignature crypto.Signature `json:"consensus_info_signature"` } // ConsensusInfo represents the consensus information on the compaction chain. @@ -120,8 +120,8 @@ func (b *Block) Clone() *Block { }, ConsensusInfoParentHash: b.ConsensusInfoParentHash, } - bcopy.CompactionChainAck.ConsensusSignature = append( - crypto.Signature(nil), b.CompactionChainAck.ConsensusSignature...) + bcopy.CompactionChainAck.ConsensusInfoSignature = append( + crypto.Signature(nil), b.CompactionChainAck.ConsensusInfoSignature...) for k, v := range b.Timestamps { bcopy.Timestamps[k] = v } -- cgit v1.2.3