From a5cfb40e27bd281354bd0d14d91f83efb6bfce9f Mon Sep 17 00:00:00 2001 From: Sebastian Falbesoner Date: Sat, 29 Aug 2020 10:41:23 +0200 Subject: [PATCH] doc: release note for changed {sign,verify}message error codes --- doc/release-notes-18466.md | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 doc/release-notes-18466.md diff --git a/doc/release-notes-18466.md b/doc/release-notes-18466.md new file mode 100644 index 0000000000..e46d5064a3 --- /dev/null +++ b/doc/release-notes-18466.md @@ -0,0 +1,10 @@ +Low-level RPC changes +--------------------- + +- Error codes have been updated to be more accurate for the following error cases (#18466): + - `signmessage` now returns RPC_INVALID_ADDRESS_OR_KEY (-5) if the + passed address is invalid. Previously returned RPC_TYPE_ERROR (-3). + - `verifymessage` now returns RPC_INVALID_ADDRESS_OR_KEY (-5) if the + passed address is invalid. Previously returned RPC_TYPE_ERROR (-3). + - `verifymessage` now returns RPC_TYPE_ERROR (-3) if the passed signature + is malformed. Previously returned RPC_INVALID_ADDRESS_OR_KEY (-5).