diff --git a/src/test/dos_tests.cpp b/src/test/dos_tests.cpp index aa88e573ba..7ff4491b2c 100755 --- a/src/test/dos_tests.cpp +++ b/src/test/dos_tests.cpp @@ -137,7 +137,7 @@ BOOST_AUTO_TEST_CASE(DoS_mapOrphans) CKey key; key.MakeNewKey(true); CBasicKeyStore keystore; - keystore.AddKey(key); + BOOST_CHECK(keystore.AddKey(key)); // 50 orphan transactions: for (int i = 0; i < 50; i++) @@ -165,7 +165,7 @@ BOOST_AUTO_TEST_CASE(DoS_mapOrphans) tx.vout.resize(1); tx.vout[0].nValue = 1*CENT; tx.vout[0].scriptPubKey.SetDestination(key.GetPubKey().GetID()); - SignSignature(keystore, txPrev, tx, 0); + BOOST_CHECK(SignSignature(keystore, txPrev, tx, 0)); AddOrphanTx(tx); } @@ -184,7 +184,7 @@ BOOST_AUTO_TEST_CASE(DoS_mapOrphans) tx.vin[j].prevout.n = j; tx.vin[j].prevout.hash = txPrev.GetHash(); } - SignSignature(keystore, txPrev, tx, 0); + BOOST_CHECK(SignSignature(keystore, txPrev, tx, 0)); // Re-use same signature for other inputs // (they don't have to be valid for this test) for (unsigned int j = 1; j < tx.vin.size(); j++) @@ -210,7 +210,7 @@ BOOST_AUTO_TEST_CASE(DoS_checkSig) CKey key; key.MakeNewKey(true); CBasicKeyStore keystore; - keystore.AddKey(key); + BOOST_CHECK(keystore.AddKey(key)); // 100 orphan transactions: static const int NPREV=100; diff --git a/src/test/multisig_tests.cpp b/src/test/multisig_tests.cpp index 0cc4c9539c..0be7102ca2 100644 --- a/src/test/multisig_tests.cpp +++ b/src/test/multisig_tests.cpp @@ -258,7 +258,7 @@ BOOST_AUTO_TEST_CASE(multisig_Sign) for (int i = 0; i < 4; i++) { key[i].MakeNewKey(true); - keystore.AddKey(key[i]); + BOOST_CHECK(keystore.AddKey(key[i])); } CScript a_and_b;