Changeset View
Changeset View
Standalone View
Standalone View
src/rpc/util.cpp
Show First 20 Lines • Show All 771 Lines • ▼ Show 20 Lines | for (int i = range.first; i <= range.second; ++i) { | ||||
RPC_INVALID_ADDRESS_OR_KEY, | RPC_INVALID_ADDRESS_OR_KEY, | ||||
strprintf("Cannot derive script without private keys: '%s'", | strprintf("Cannot derive script without private keys: '%s'", | ||||
desc_str)); | desc_str)); | ||||
} | } | ||||
std::move(scripts.begin(), scripts.end(), std::back_inserter(ret)); | std::move(scripts.begin(), scripts.end(), std::back_inserter(ret)); | ||||
} | } | ||||
return ret; | return ret; | ||||
} | } | ||||
UniValue GetServicesNames(ServiceFlags services) { | |||||
UniValue servicesNames(UniValue::VARR); | |||||
if (services & NODE_NETWORK) { | |||||
servicesNames.push_back("NETWORK"); | |||||
} | |||||
if (services & NODE_GETUTXO) { | |||||
servicesNames.push_back("GETUTXO"); | |||||
} | |||||
if (services & NODE_BLOOM) { | |||||
servicesNames.push_back("BLOOM"); | |||||
} | |||||
if (services & NODE_XTHIN) { | |||||
servicesNames.push_back("XTHIN"); | |||||
} | |||||
if (services & NODE_BITCOIN_CASH) { | |||||
servicesNames.push_back("BITCOIN_CASH"); | |||||
} | |||||
if (services & NODE_NETWORK_LIMITED) { | |||||
servicesNames.push_back("NETWORK_LIMITED"); | |||||
} | |||||
if (services & NODE_AVALANCHE) { | |||||
servicesNames.push_back("AVALANCHE"); | |||||
} | |||||
return servicesNames; | |||||
} |