aboutsummaryrefslogtreecommitdiffstats
path: root/core/compaction-chain.go
diff options
context:
space:
mode:
Diffstat (limited to 'core/compaction-chain.go')
-rw-r--r--core/compaction-chain.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/compaction-chain.go b/core/compaction-chain.go
index 21b8412..c6d423d 100644
--- a/core/compaction-chain.go
+++ b/core/compaction-chain.go
@@ -59,7 +59,7 @@ func (cc *compactionChain) sanityCheck(witnessBlock *types.Block) error {
func (cc *compactionChain) processBlock(block *types.Block) error {
prevBlock := cc.lastBlock()
if prevBlock != nil {
- block.Witness.Height = prevBlock.Witness.Height + 1
+ block.ConsensusHeight = prevBlock.ConsensusHeight + 1
}
cc.prevBlockLock.Lock()
defer cc.prevBlockLock.Unlock()