Skip to content

Commit

Permalink
Merge branch 'master' into pectra_devnet_4
Browse files Browse the repository at this point in the history
  • Loading branch information
MarekM25 committed Oct 17, 2024
2 parents 855e354 + 5324473 commit 58b5541
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Nethermind/Nethermind.Trie/Pruning/TrieStore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,7 @@ private BlockCommitSet CreateCommitSet(long blockNumber)
if (_logger.IsDebug) _logger.Debug($"Beginning new {nameof(BlockCommitSet)} - {blockNumber}");

// TODO: this throws on reorgs, does it not? let us recreate it in test
Debug.Assert(!CommitSetQueue.TryPeek(out BlockCommitSet lastSet) || blockNumber == lastSet.BlockNumber + 1, $"Newly begun block is not a successor of the last one.");
Debug.Assert(!CommitSetQueue.TryPeek(out BlockCommitSet lastSet) || blockNumber == lastSet.BlockNumber + 1 || lastSet.BlockNumber == 0, $"Newly begun block is not a successor of the last one.");
Debug.Assert(!CommitSetQueue.TryPeek(out lastSet) || lastSet.IsSealed, "Not sealed when beginning new block");

BlockCommitSet commitSet = new(blockNumber);
Expand Down

0 comments on commit 58b5541

Please sign in to comment.