Fix active transactions pruning regression (#3273)
https://github.com/nanocurrency/nano-node/issues/3271
This commit is contained in:
parent
a20d6610a5
commit
aefa4d0152
1 changed files with 1 additions and 1 deletions
|
@ -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 ());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue