Skip to content

Commit

Permalink
Fix build error with new optional pending_info (#4487)
Browse files Browse the repository at this point in the history
  • Loading branch information
simpago authored Mar 13, 2024
1 parent 97cc02c commit 7dbf64f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nano/secure/ledger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,7 @@ void ledger_processor::receive_block (nano::receive_block & block_a)
#ifdef NDEBUG
if (ledger.store.block.exists (transaction, block_a.hashables.source))
{
auto info = ledger.account_info (transaction, pending.source);
auto info = ledger.account_info (transaction, pending.value ().source);
debug_assert (info);
}
#endif
Expand Down Expand Up @@ -659,7 +659,7 @@ void ledger_processor::open_block (nano::open_block & block_a)
if (ledger.store.block.exists (transaction, block_a.hashables.source))
{
nano::account_info source_info;
[[maybe_unused]] auto error (ledger.store.account.get (transaction, pending.source, source_info));
[[maybe_unused]] auto error (ledger.store.account.get (transaction, pending.value ().source, source_info));
debug_assert (!error);
}
#endif
Expand Down

0 comments on commit 7dbf64f

Please sign in to comment.