From c0b40b3756edef8df9655fd8a0e5f61602d1cf3a Mon Sep 17 00:00:00 2001 From: sLiinuX <90932021+sLiinuX@users.noreply.github.com> Date: Thu, 10 Mar 2022 11:17:32 -0500 Subject: [PATCH] RPC Help strings : (requires assetindex to be enabled) Added the mention (requires assetindex to be enabled) into the help return string of the two following rpc calls : - listassetbalancesbyaddress - listaddressesbyasset RPC calls return an error anyway but better to mention this requirement in the help string as well. Usefull for devs and users that search for a function and requirements for it. --- src/rpc/assets.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rpc/assets.cpp b/src/rpc/assets.cpp index 3a133a0b51..5c0e9b035c 100644 --- a/src/rpc/assets.cpp +++ b/src/rpc/assets.cpp @@ -747,7 +747,7 @@ UniValue listassetbalancesbyaddress(const JSONRPCRequest& request) throw std::runtime_error( "listassetbalancesbyaddress \"address\" (onlytotal) (count) (start)\n" + AssetActivationWarning() + - "\nReturns a list of all asset balances for an address.\n" + "\nReturns a list of all asset balances for an address (requires assetindex to be enabled).\n" "\nArguments:\n" "1. \"address\" (string, required) a raven address\n" @@ -1079,7 +1079,7 @@ UniValue listaddressesbyasset(const JSONRPCRequest &request) throw std::runtime_error( "listaddressesbyasset \"asset_name\" (onlytotal) (count) (start)\n" + AssetActivationWarning() + - "\nReturns a list of all address that own the given asset (with balances)" + "\nReturns a list of all address that own the given asset (with balances) (requires assetindex to be enabled)." "\nOr returns the total size of how many address own the given asset" "\nArguments:\n"