Skip to content

Commit

Permalink
feature(multi-op-return): test multi-opreturn with isStandard true on…
Browse files Browse the repository at this point in the history
… regtest
  • Loading branch information
naach committed Oct 14, 2020
1 parent 8aea282 commit fd10cbd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/chainparams.cpp
Expand Up @@ -517,7 +517,7 @@ class CRegTestParams : public CChainParams

fMiningRequiresPeers = false;
fDefaultConsistencyChecks = true;
fRequireStandard = false;
fRequireStandard = true;
fMineBlocksOnDemand = true;
fTestnetToBeDeprecatedFieldRPC = false;

Expand Down
10 changes: 5 additions & 5 deletions src/policy/policy.cpp
Expand Up @@ -126,11 +126,11 @@ bool IsStandardTx(const CTransactionRef tx, std::string &reason)
}

// only one OP_RETURN txout is permitted
if (nDataOut > 1)
{
reason = "multi-op-return";
return false;
}
// if (nDataOut > 1)
// {
// reason = "multi-op-return";
// return false;
// }

return true;
}
Expand Down

0 comments on commit fd10cbd

Please sign in to comment.