Skip to content

Commit fd10cbd

Browse files
author
naach
committed
feature(multi-op-return): test multi-opreturn with isStandard true on regtest
1 parent 8aea282 commit fd10cbd

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/chainparams.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@ class CRegTestParams : public CChainParams
517517

518518
fMiningRequiresPeers = false;
519519
fDefaultConsistencyChecks = true;
520-
fRequireStandard = false;
520+
fRequireStandard = true;
521521
fMineBlocksOnDemand = true;
522522
fTestnetToBeDeprecatedFieldRPC = false;
523523

src/policy/policy.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -126,11 +126,11 @@ bool IsStandardTx(const CTransactionRef tx, std::string &reason)
126126
}
127127

128128
// only one OP_RETURN txout is permitted
129-
if (nDataOut > 1)
130-
{
131-
reason = "multi-op-return";
132-
return false;
133-
}
129+
// if (nDataOut > 1)
130+
// {
131+
// reason = "multi-op-return";
132+
// return false;
133+
// }
134134

135135
return true;
136136
}

0 commit comments

Comments
 (0)