Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace "pending" with "receivable"/"ready to receive" in node logs (#3411) #3438

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions nano/node/wallet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1169,7 +1169,7 @@ bool nano::wallet::search_pending (nano::transaction const & wallet_transaction_
auto result (!store.valid_password (wallet_transaction_a));
if (!result)
{
wallets.node.logger.try_log ("Beginning pending block search");
wallets.node.logger.try_log ("Beginning receivable block search");
for (auto i (store.begin (wallet_transaction_a)), n (store.end ()); i != n; ++i)
{
auto block_transaction (wallets.node.store.tx_begin_read ());
Expand All @@ -1185,7 +1185,7 @@ bool nano::wallet::search_pending (nano::transaction const & wallet_transaction_
auto amount (pending.amount.number ());
if (wallets.node.config.receive_minimum.number () <= amount)
{
wallets.node.logger.try_log (boost::str (boost::format ("Found a pending block %1% for account %2%") % hash.to_string () % pending.source.to_account ()));
wallets.node.logger.try_log (boost::str (boost::format ("Found a receivable block %1% for account %2%") % hash.to_string () % pending.source.to_account ()));
if (wallets.node.ledger.block_confirmed (block_transaction, hash))
{
auto representative = store.representative (wallet_transaction_a);
Expand All @@ -1205,7 +1205,7 @@ bool nano::wallet::search_pending (nano::transaction const & wallet_transaction_
}
}
}
wallets.node.logger.try_log ("Pending block search phase complete");
wallets.node.logger.try_log ("Receivable block search phase completed");
}
else
{
Expand Down