Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
area363 committed Jul 8, 2024
1 parent f9e79b3 commit 4b3c493
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion NineChronicles.Snapshot/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ public void Snapshot(
}

var genesisHash = _store.IterateIndexes(chainId,0, 1).First();
var tipHash = _store.IndexBlockHash(chainId, -2)
var tipHash = _store.IndexBlockHash(chainId, -3)
?? throw new CommandExitedException("The given chain seems empty.", -1);
if (!(_store.GetBlockIndex(tipHash) is { } tipIndex))
{
Expand Down

0 comments on commit 4b3c493

Please sign in to comment.