Skip to content

Commit

Permalink
Fix active transactions pruning regression (#3273)
Browse files Browse the repository at this point in the history
  • Loading branch information
SergiySW authored May 12, 2021
1 parent a20d661 commit aefa4d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nano/node/active_transactions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -808,7 +808,7 @@ nano::election_insertion_result nano::active_transactions::insert_impl (nano::un
if (!previous_balance_a.is_initialized () && !block_a->previous ().is_zero ())
{
auto transaction (node.store.tx_begin_read ());
if (node.ledger.block_or_pruned_exists (block_a->previous ()))
if (node.store.block_exists (transaction, block_a->previous ()))
{
previous_balance = node.ledger.balance (transaction, block_a->previous ());
}
Expand Down

0 comments on commit aefa4d0

Please sign in to comment.