diff options
Diffstat (limited to 'core/types/block.go')
-rw-r--r-- | core/types/block.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/core/types/block.go b/core/types/block.go index 8a27ab0..55e82da 100644 --- a/core/types/block.go +++ b/core/types/block.go @@ -91,7 +91,17 @@ func (b *Block) Clone() *Block { Height: b.Height, Timestamps: make(map[ValidatorID]time.Time), Acks: make(map[common.Hash]struct{}), + CompactionChainAck: CompactionChainAck{ + AckingBlockHash: b.CompactionChainAck.AckingBlockHash, + }, + ConsensusInfo: ConsensusInfo{ + Timestamp: b.ConsensusInfo.Timestamp, + Height: b.ConsensusInfo.Height, + }, + ConsensusInfoParentHash: b.ConsensusInfoParentHash, } + bcopy.CompactionChainAck.ConsensusSignature = append( + crypto.Signature(nil), b.CompactionChainAck.ConsensusSignature...) for k, v := range b.Timestamps { bcopy.Timestamps[k] = v } |