0
0
Fork 0
mirror of https://github.com/bitcoin/bitcoin.git synced 2025-02-03 09:56:38 -05:00
bitcoin-bitcoin-core/doc/release-notes-29845.md
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

322 B

RPC

  • the warnings field in getblockchaininfo, getmininginfo and getnetworkinfo now returns all the active node warnings as an array of strings, instead of just a single warning. The current behaviour can temporarily be restored by running bitcoind with configuration option -deprecatedrpc=warnings.