mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-04 10:12:28 +02:00
rpc: extract wallet "warnings" fields to a util helper
This commit is contained in:
@@ -381,4 +381,12 @@ private:
|
||||
const RPCExamples m_examples;
|
||||
};
|
||||
|
||||
/**
|
||||
* Push warning messages to an RPC "warnings" field as a JSON array of strings.
|
||||
*
|
||||
* @param[in] warnings Warning messages to push.
|
||||
* @param[out] obj UniValue object to push the warnings array object to.
|
||||
*/
|
||||
void PushWarnings(const UniValue& warnings, UniValue& obj);
|
||||
|
||||
#endif // BITCOIN_RPC_UTIL_H
|
||||
|
||||
Reference in New Issue
Block a user