@@ -1514,8 +1514,8 @@ BOOST_AUTO_TEST_CASE(bitcoinconsensus_verify_script_returns_true)
1514
1514
CScriptWitness wit;
1515
1515
1516
1516
scriptPubKey << OP_1;
1517
- CTransaction creditTx = BuildCreditingTransaction (scriptPubKey, 1 );
1518
- CTransaction spendTx = BuildSpendingTransaction (scriptSig, wit, creditTx);
1517
+ CTransaction creditTx{ BuildCreditingTransaction (scriptPubKey, 1 )} ;
1518
+ CTransaction spendTx{ BuildSpendingTransaction (scriptSig, wit, creditTx)} ;
1519
1519
1520
1520
CDataStream stream (SER_NETWORK, PROTOCOL_VERSION);
1521
1521
stream << spendTx;
@@ -1537,8 +1537,8 @@ BOOST_AUTO_TEST_CASE(bitcoinconsensus_verify_script_tx_index_err)
1537
1537
CScriptWitness wit;
1538
1538
1539
1539
scriptPubKey << OP_EQUAL;
1540
- CTransaction creditTx = BuildCreditingTransaction (scriptPubKey, 1 );
1541
- CTransaction spendTx = BuildSpendingTransaction (scriptSig, wit, creditTx);
1540
+ CTransaction creditTx{ BuildCreditingTransaction (scriptPubKey, 1 )} ;
1541
+ CTransaction spendTx{ BuildSpendingTransaction (scriptSig, wit, creditTx)} ;
1542
1542
1543
1543
CDataStream stream (SER_NETWORK, PROTOCOL_VERSION);
1544
1544
stream << spendTx;
@@ -1560,8 +1560,8 @@ BOOST_AUTO_TEST_CASE(bitcoinconsensus_verify_script_tx_size)
1560
1560
CScriptWitness wit;
1561
1561
1562
1562
scriptPubKey << OP_EQUAL;
1563
- CTransaction creditTx = BuildCreditingTransaction (scriptPubKey, 1 );
1564
- CTransaction spendTx = BuildSpendingTransaction (scriptSig, wit, creditTx);
1563
+ CTransaction creditTx{ BuildCreditingTransaction (scriptPubKey, 1 )} ;
1564
+ CTransaction spendTx{ BuildSpendingTransaction (scriptSig, wit, creditTx)} ;
1565
1565
1566
1566
CDataStream stream (SER_NETWORK, PROTOCOL_VERSION);
1567
1567
stream << spendTx;
@@ -1583,8 +1583,8 @@ BOOST_AUTO_TEST_CASE(bitcoinconsensus_verify_script_tx_serialization)
1583
1583
CScriptWitness wit;
1584
1584
1585
1585
scriptPubKey << OP_EQUAL;
1586
- CTransaction creditTx = BuildCreditingTransaction (scriptPubKey, 1 );
1587
- CTransaction spendTx = BuildSpendingTransaction (scriptSig, wit, creditTx);
1586
+ CTransaction creditTx{ BuildCreditingTransaction (scriptPubKey, 1 )} ;
1587
+ CTransaction spendTx{ BuildSpendingTransaction (scriptSig, wit, creditTx)} ;
1588
1588
1589
1589
CDataStream stream (SER_NETWORK, PROTOCOL_VERSION);
1590
1590
stream << 0xffffffff ;
@@ -1606,8 +1606,8 @@ BOOST_AUTO_TEST_CASE(bitcoinconsensus_verify_script_amount_required_err)
1606
1606
CScriptWitness wit;
1607
1607
1608
1608
scriptPubKey << OP_EQUAL;
1609
- CTransaction creditTx = BuildCreditingTransaction (scriptPubKey, 1 );
1610
- CTransaction spendTx = BuildSpendingTransaction (scriptSig, wit, creditTx);
1609
+ CTransaction creditTx{ BuildCreditingTransaction (scriptPubKey, 1 )} ;
1610
+ CTransaction spendTx{ BuildSpendingTransaction (scriptSig, wit, creditTx)} ;
1611
1611
1612
1612
CDataStream stream (SER_NETWORK, PROTOCOL_VERSION);
1613
1613
stream << spendTx;
@@ -1629,8 +1629,8 @@ BOOST_AUTO_TEST_CASE(bitcoinconsensus_verify_script_invalid_flags)
1629
1629
CScriptWitness wit;
1630
1630
1631
1631
scriptPubKey << OP_EQUAL;
1632
- CTransaction creditTx = BuildCreditingTransaction (scriptPubKey, 1 );
1633
- CTransaction spendTx = BuildSpendingTransaction (scriptSig, wit, creditTx);
1632
+ CTransaction creditTx{ BuildCreditingTransaction (scriptPubKey, 1 )} ;
1633
+ CTransaction spendTx{ BuildSpendingTransaction (scriptSig, wit, creditTx)} ;
1634
1634
1635
1635
CDataStream stream (SER_NETWORK, PROTOCOL_VERSION);
1636
1636
stream << spendTx;
0 commit comments