@@ -260,7 +260,7 @@ BOOST_AUTO_TEST_CASE(CreateNewBlock_validity)
260
260
{
261
261
tx.vout [0 ].nValue -= LOWFEE;
262
262
hash = tx.GetHash ();
263
- bool spendsCoinbase = ( i == 0 ) ? true : false ; // only first tx spends coinbase
263
+ bool spendsCoinbase = i == 0 ; // only first tx spends coinbase
264
264
// If we don't set the # of sig ops in the CTxMemPoolEntry, template creation fails
265
265
mempool.addUnchecked (hash, entry.Fee (LOWFEE).Time (GetTime ()).SpendsCoinbase (spendsCoinbase).FromTx (tx));
266
266
tx.vin [0 ].prevout .hash = hash;
@@ -274,7 +274,7 @@ BOOST_AUTO_TEST_CASE(CreateNewBlock_validity)
274
274
{
275
275
tx.vout [0 ].nValue -= LOWFEE;
276
276
hash = tx.GetHash ();
277
- bool spendsCoinbase = ( i == 0 ) ? true : false ; // only first tx spends coinbase
277
+ bool spendsCoinbase = i == 0 ; // only first tx spends coinbase
278
278
// If we do set the # of sig ops in the CTxMemPoolEntry, template creation passes
279
279
mempool.addUnchecked (hash, entry.Fee (LOWFEE).Time (GetTime ()).SpendsCoinbase (spendsCoinbase).SigOpsCost (80 ).FromTx (tx));
280
280
tx.vin [0 ].prevout .hash = hash;
@@ -295,7 +295,7 @@ BOOST_AUTO_TEST_CASE(CreateNewBlock_validity)
295
295
{
296
296
tx.vout [0 ].nValue -= LOWFEE;
297
297
hash = tx.GetHash ();
298
- bool spendsCoinbase = ( i == 0 ) ? true : false ; // only first tx spends coinbase
298
+ bool spendsCoinbase = i == 0 ; // only first tx spends coinbase
299
299
mempool.addUnchecked (hash, entry.Fee (LOWFEE).Time (GetTime ()).SpendsCoinbase (spendsCoinbase).FromTx (tx));
300
300
tx.vin [0 ].prevout .hash = hash;
301
301
}
0 commit comments