@@ -137,7 +137,7 @@ BOOST_AUTO_TEST_CASE(DoS_mapOrphans)
137
137
CKey key;
138
138
key.MakeNewKey (true );
139
139
CBasicKeyStore keystore;
140
- keystore.AddKey (key);
140
+ BOOST_CHECK ( keystore.AddKey (key) );
141
141
142
142
// 50 orphan transactions:
143
143
for (int i = 0 ; i < 50 ; i++)
@@ -165,7 +165,7 @@ BOOST_AUTO_TEST_CASE(DoS_mapOrphans)
165
165
tx.vout .resize (1 );
166
166
tx.vout [0 ].nValue = 1 *CENT;
167
167
tx.vout [0 ].scriptPubKey .SetDestination (key.GetPubKey ().GetID ());
168
- SignSignature (keystore, txPrev, tx, 0 );
168
+ BOOST_CHECK ( SignSignature (keystore, txPrev, tx, 0 ) );
169
169
AddOrphanTx (tx);
170
170
}
171
171
@@ -184,7 +184,7 @@ BOOST_AUTO_TEST_CASE(DoS_mapOrphans)
184
184
tx.vin [j].prevout .n = j;
185
185
tx.vin [j].prevout .hash = txPrev.GetHash ();
186
186
}
187
- SignSignature (keystore, txPrev, tx, 0 );
187
+ BOOST_CHECK ( SignSignature (keystore, txPrev, tx, 0 ) );
188
188
// Re-use same signature for other inputs
189
189
// (they don't have to be valid for this test)
190
190
for (unsigned int j = 1 ; j < tx.vin .size (); j++)
@@ -210,7 +210,7 @@ BOOST_AUTO_TEST_CASE(DoS_checkSig)
210
210
CKey key;
211
211
key.MakeNewKey (true );
212
212
CBasicKeyStore keystore;
213
- keystore.AddKey (key);
213
+ BOOST_CHECK ( keystore.AddKey (key) );
214
214
215
215
// 100 orphan transactions:
216
216
static const int NPREV=100 ;
0 commit comments