File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -1470,8 +1470,6 @@ BOOST_AUTO_TEST_CASE(script_HasValidOps)
1470
1470
BOOST_CHECK (!script.HasValidOps ());
1471
1471
}
1472
1472
1473
- #if defined(HAVE_CONSENSUS_LIB)
1474
-
1475
1473
static CMutableTransaction TxFromHex (const std::string& str)
1476
1474
{
1477
1475
CMutableTransaction tx;
@@ -1502,6 +1500,8 @@ static CScriptWitness ScriptWitnessFromJSON(const UniValue& univalue)
1502
1500
return scriptwitness;
1503
1501
}
1504
1502
1503
+ #if defined(HAVE_CONSENSUS_LIB)
1504
+
1505
1505
/* Test simple (successful) usage of bitcoinconsensus_verify_script */
1506
1506
BOOST_AUTO_TEST_CASE (bitcoinconsensus_verify_script_returns_true)
1507
1507
{
@@ -1640,6 +1640,8 @@ BOOST_AUTO_TEST_CASE(bitcoinconsensus_verify_script_invalid_flags)
1640
1640
BOOST_CHECK_EQUAL (err, bitcoinconsensus_ERR_INVALID_FLAGS);
1641
1641
}
1642
1642
1643
+ #endif // defined(HAVE_CONSENSUS_LIB)
1644
+
1643
1645
static std::vector<unsigned int > AllConsensusFlags ()
1644
1646
{
1645
1647
std::vector<unsigned int > ret;
@@ -1742,5 +1744,4 @@ BOOST_AUTO_TEST_CASE(script_assets_test)
1742
1744
file.close ();
1743
1745
}
1744
1746
1745
- #endif
1746
1747
BOOST_AUTO_TEST_SUITE_END ()
You can’t perform that action at this time.
0 commit comments