From 4b3c4939e565cfed96f53cb37d2effb8a285e47f Mon Sep 17 00:00:00 2001 From: area363 Date: Mon, 8 Jul 2024 16:10:43 +0900 Subject: [PATCH] test --- NineChronicles.Snapshot/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NineChronicles.Snapshot/Program.cs b/NineChronicles.Snapshot/Program.cs index e805133..759b110 100644 --- a/NineChronicles.Snapshot/Program.cs +++ b/NineChronicles.Snapshot/Program.cs @@ -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)) {