mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Extra logging.
This commit is contained in:
@@ -324,8 +324,12 @@ BOOST_AUTO_TEST_CASE( ProofOfWork_test )
|
||||
BOOST_FAIL("Solution did not check");
|
||||
|
||||
cLog(lsDEBUG) << "A bad nonce error is expected";
|
||||
if (gen.checkProof(pow.getToken(), uint256()) != powBADNONCE)
|
||||
POWResult r = gen.checkProof(pow.getToken(), uint256());
|
||||
if (r != powBADNONCE)
|
||||
{
|
||||
Log(lsFATAL) << "POWResult = " << static_cast<int>(r);
|
||||
BOOST_FAIL("Empty solution didn't show bad nonce");
|
||||
}
|
||||
if (gen.checkProof(pow.getToken(), solution) != powOK)
|
||||
BOOST_FAIL("Solution did not check with issuer");
|
||||
cLog(lsDEBUG) << "A reused nonce error is expected";
|
||||
|
||||
Reference in New Issue
Block a user