Skip to content

Commit

Permalink
Merge pull request #5595 from multiversx/fix-snapshot-in-the-wrong-epoch
Browse files Browse the repository at this point in the history
Fix snapshot in the wrong epoch
  • Loading branch information
BeniaminDrasovean authored Sep 26, 2023
2 parents 5fe5258 + 7eed456 commit 58c66cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion process/block/shardblock.go
Original file line number Diff line number Diff line change
Expand Up @@ -1258,7 +1258,7 @@ func (sp *shardProcessor) snapShotEpochStartFromMeta(header data.ShardHeaderHand
log.Debug("using scheduled root hash for snapshotting", "schRootHash", schRootHash)
rootHash = schRootHash
}
epoch := header.GetEpoch()
epoch := sp.epochStartTrigger.MetaEpoch()
log.Debug("shard trie snapshot from epoch start shard data", "rootHash", rootHash, "epoch", epoch)
accounts.SnapshotState(rootHash, epoch)
sp.markSnapshotDoneInPeerAccounts()
Expand Down

0 comments on commit 58c66cc

Please sign in to comment.