Fix unit tests after recent breaks.
This commit is contained in:
parent
4b5ff04114
commit
fdad3e16a8
2 changed files with 11 additions and 1 deletions
|
@ -179,6 +179,8 @@ void ScriptPubKeyToUniv(const CScript& scriptPubKey,
|
|||
int claimOp;
|
||||
auto stripped = StripClaimScriptPrefix(scriptPubKey, claimOp);
|
||||
auto extracted = ExtractDestinations(stripped, type, addresses, nRequired);
|
||||
if (extracted)
|
||||
out.pushKV("reqSigs", nRequired);
|
||||
|
||||
if (claimOp >= 0) {
|
||||
out.pushKV("isclaim", UniValue(claimOp == OP_CLAIM_NAME || claimOp == OP_UPDATE_CLAIM));
|
||||
|
@ -190,7 +192,6 @@ void ScriptPubKeyToUniv(const CScript& scriptPubKey,
|
|||
out.pushKV("type", GetTxnOutputType(type));
|
||||
|
||||
if (extracted || type == TX_PUBLIC) {
|
||||
out.pushKV("reqSigs", nRequired);
|
||||
UniValue a(UniValue::VARR);
|
||||
for (const CTxDestination &addr : addresses) {
|
||||
a.push_back(EncodeDestination(addr));
|
||||
|
|
|
@ -7,6 +7,15 @@
|
|||
|
||||
using namespace std;
|
||||
|
||||
BOOST_FIXTURE_TEST_SUITE(claimtriefixture_tests, RegTestingSetup)
|
||||
|
||||
BOOST_AUTO_TEST_CASE(claimtriefixture_noop)
|
||||
{
|
||||
BOOST_REQUIRE(true);
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_SUITE_END()
|
||||
|
||||
CMutableTransaction BuildTransaction(const CTransaction& prev, uint32_t prevout, unsigned int numOutputs, int locktime)
|
||||
{
|
||||
CMutableTransaction tx;
|
||||
|
|
Loading…
Reference in a new issue