stickies-v 42fb5311b1
rpc: return warnings as an array instead of just a single one
The RPC documentation for `getblockchaininfo`, `getmininginfo` and
`getnetworkinfo` states that "warnings" returns "any network and
blockchain warnings". In practice, only a single warning is returned.

Fix that by returning all warnings as an array.

As a side benefit, cleans up the GetWarnings() logic.
2024-05-01 14:44:57 +01:00
..
2024-02-15 14:37:01 +01:00
2022-03-11 17:46:58 +01:00
2023-12-11 18:22:13 +01:00
2024-03-01 13:51:21 +00:00