From 3a1ebf8ac3444eac02d710ac8e05f960b34a9774 Mon Sep 17 00:00:00 2001 From: Brannon King Date: Wed, 11 Sep 2019 09:06:08 -0600 Subject: [PATCH] change rpc enablement mechanism --- src/wallet/rpcwallet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;