diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp index 5451a148e..9b3fecb5e 100644 --- a/src/wallet/rpcwallet.cpp +++ b/src/wallet/rpcwallet.cpp @@ -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;