mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 06:58:57 +01:00
rpc: extract wallet "warnings" fields to a util helper
This commit is contained in:
@@ -1174,3 +1174,9 @@ UniValue GetServicesNames(ServiceFlags services)
|
||||
|
||||
return servicesNames;
|
||||
}
|
||||
|
||||
void PushWarnings(const UniValue& warnings, UniValue& obj)
|
||||
{
|
||||
if (warnings.empty()) return;
|
||||
obj.pushKV("warnings", warnings);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user