Skip to content

Commit

Permalink
Fix: failing assert (#397)
Browse files Browse the repository at this point in the history
  • Loading branch information
dangell7 authored Nov 28, 2024
1 parent a05d58a commit 3879c52
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/ripple/nodestore/impl/Shard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -710,10 +710,7 @@ Shard::finalize(bool writeSQLite, std::optional<uint256> const& referenceHash)
if (writeSQLite && !storeSQLite(ledger))
return fail("failed storing to SQLite databases");

assert(
ledger->info().seq == ledgerSeq &&
(ledger->info().seq < XRP_LEDGER_EARLIEST_FEES ||
ledger->read(keylet::fees())));
assert(ledger->info().seq == ledgerSeq && ledger->read(keylet::fees()));

hash = ledger->info().parentHash;
next = std::move(ledger);
Expand Down

0 comments on commit 3879c52

Please sign in to comment.