This rpc can only be used on non z2z chains
This commit is contained in:
@@ -629,7 +629,7 @@ UniValue kvupdate(const UniValue& params, bool fHelp, const CPubKey& mypk)
|
||||
if (fHelp || params.size() < 3 )
|
||||
throw runtime_error(
|
||||
"kvupdate key \"value\" days passphrase\n"
|
||||
"\nStore a key value. This feature is only available for asset chains.\n"
|
||||
"\nStore a key value. This feature is only available for non-z2z chains.\n"
|
||||
"\nArguments:\n"
|
||||
"1. key (string, required) key\n"
|
||||
"2. \"value\" (string, required) value\n"
|
||||
@@ -654,8 +654,11 @@ UniValue kvupdate(const UniValue& params, bool fHelp, const CPubKey& mypk)
|
||||
);
|
||||
if (!EnsureWalletIsAvailable(fHelp))
|
||||
return 0;
|
||||
if ( SMART_CHAIN_SYMBOL[0] == 0 )
|
||||
return(0);
|
||||
|
||||
if (ASSETCHAINS_PRIVATE) {
|
||||
throw JSONRPCError(RPC_TYPE_ERROR, "This RPC is only available on non z2z chains");
|
||||
}
|
||||
|
||||
haveprivkey = 0;
|
||||
memset(&sig,0,sizeof(sig));
|
||||
memset(&privkey,0,sizeof(privkey));
|
||||
|
||||
Reference in New Issue
Block a user