Skip to content

Commit

Permalink
Rebase fix
Browse files Browse the repository at this point in the history
  • Loading branch information
greymistcube committed Nov 29, 2024
1 parent fb6fe3b commit 3eaa387
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Libplanet.RocksDBStore/RocksDBStore.Prune.cs
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ private IEnumerable<BlockHash> IterateIndexesForPrune(Guid chainId)
private IEnumerable<BlockHash> IterateIndexesInnerForPrune(Guid chainId)
{
byte[] prefix = Concat(IndexKeyPrefix, chainId.ToByteArray());
foreach (Iterator it in IterateDb(_chainDb, prefix))
foreach (Iterator it in IterateDbUnpruned(_chainDb, prefix))
{
byte[] value = it.Value();
yield return new BlockHash(value);
Expand Down
4 changes: 2 additions & 2 deletions src/Libplanet.RocksDBStore/RocksDBStore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,7 @@ BlockHash branchpoint
}

using var batch = new WriteBatch();
foreach (Iterator k in IterateDb(_chainDb, IndexKey(destinationChainId)))
foreach (Iterator k in IterateDbUnpruned(_chainDb, IndexKey(destinationChainId)))
{
batch.Delete(k.Key());
}
Expand Down Expand Up @@ -1147,7 +1147,7 @@ public override void ForkTxNonces(Guid sourceChainId, Guid destinationChainId)
try
{
byte[] prefix = TxNonceKey(sourceChainId);
foreach (Iterator it in IterateDb(_chainDb, prefix))
foreach (Iterator it in IterateDbUnpruned(_chainDb, prefix))
{
exist = true;
Address address = new Address(it.Key().Skip(prefix.Length).ToArray());
Expand Down

0 comments on commit 3eaa387

Please sign in to comment.