Fix build error with new optional pending_info (#4487)
This commit is contained in:
parent
97cc02ce29
commit
7dbf64f11c
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue