From 5bb9a343568aead1a502b7da888c9a026cbdf4e7 Mon Sep 17 00:00:00 2001 From: SergiySW Date: Sun, 4 Feb 2018 03:53:53 +0300 Subject: [PATCH] Correct hashes in logs for pending blocks (#583) --- rai/node/wallet.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rai/node/wallet.cpp b/rai/node/wallet.cpp index a3fdcf4b..cb643265 100644 --- a/rai/node/wallet.cpp +++ b/rai/node/wallet.cpp @@ -1104,7 +1104,7 @@ public: rai::account_info info; auto error (wallet->node.store.account_get (transaction, pending.source, info)); assert (!error); - BOOST_LOG (wallet->node.log) << boost::str (boost::format ("Found a pending block %1% from account %2% with head %3%") % pending.source.to_string () % pending.source.to_account () % info.head.to_string ()); + BOOST_LOG (wallet->node.log) << boost::str (boost::format ("Found a pending block %1% from account %2% with head %3%") % key.hash.to_string () % pending.source.to_account () % info.head.to_string ()); auto account (pending.source); if (already_searched.find (account) == already_searched.end ()) { @@ -1123,7 +1123,7 @@ public: } else { - BOOST_LOG (wallet->node.log) << boost::str (boost::format ("Not receiving block %1% due to minimum receive threshold") % pending.source.to_string ()); + BOOST_LOG (wallet->node.log) << boost::str (boost::format ("Not receiving block %1% due to minimum receive threshold") % key.hash.to_string ()); } } }