change rpc enablement mechanism
This commit is contained in:
parent
d69f317b1d
commit
3a1ebf8ac3
1 changed files with 1 additions and 1 deletions
|
@ -781,7 +781,7 @@ UniValue supportclaim(const JSONRPCRequest& request)
|
|||
if (!hex.empty()) {
|
||||
if (!IsHex(hex))
|
||||
throw JSONRPCError(RPC_INVALID_PARAMETER, "value/metadata must be of hexadecimal data");
|
||||
if (!IsWitnessEnabled(chainActive.Tip(), Params().GetConsensus()))
|
||||
if (!trieCache.allowSupportMetadata())
|
||||
throw JSONRPCError(RPC_INVALID_PARAMETER, "value/metadata on supports is not enabled yet");
|
||||
supportScript = supportScript << ParseHex(hex);
|
||||
lastOp = OP_2DROP;
|
||||
|
|
Loading…
Add table
Reference in a new issue