diff options
author | stickies-v <stickies-v@protonmail.com> | 2024-04-10 12:16:21 +0200 |
---|---|---|
committer | stickies-v <stickies-v@protonmail.com> | 2024-05-01 14:44:57 +0100 |
commit | 42fb5311b19582361409d65c6fddeadbee14bb97 (patch) | |
tree | 30d0e390d19a61f84583546126273298fdd50fc5 /doc | |
parent | 842f7fdf786fcbbdf3df40522945813404f8a397 (diff) | |
download | bitcoin-42fb5311b19582361409d65c6fddeadbee14bb97.tar.xz |
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.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/release-notes-29845.md | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/release-notes-29845.md b/doc/release-notes-29845.md new file mode 100644 index 0000000000..4994d0a34d --- /dev/null +++ b/doc/release-notes-29845.md @@ -0,0 +1,8 @@ +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`.
\ No newline at end of file |