Skip to content

Commit

Permalink
Fix inverted check in scan_receivable causing spurious asserts (nanoc…
Browse files Browse the repository at this point in the history
  • Loading branch information
cryptocode authored and clemahieu committed May 4, 2018
1 parent c11d5c8 commit a4ff3bc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rai/node/node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2459,12 +2459,12 @@ class confirmed_visitor : public rai::block_visitor
{
if (!node.store.block_exists (transaction, hash))
{
BOOST_LOG (node.log) << boost::str (boost::format ("Block %1% has already been received") % hash.to_string ());
BOOST_LOG (node.log) << boost::str (boost::format ("Confirmed block is missing: %1%") % hash.to_string ());
assert (false && "Confirmed block is missing");
}
else
{
BOOST_LOG (node.log) << boost::str (boost::format ("Confirmed block is missing: %1%") % hash.to_string ());
assert (false && "Confirmed block is missing");
BOOST_LOG (node.log) << boost::str (boost::format ("Block %1% has already been received") % hash.to_string ());
}
}
}
Expand Down

0 comments on commit a4ff3bc

Please sign in to comment.