Merge #20832: rpc: Better error messages for invalid addresses

Merge #20832: rpc: Better error messages for invalid addresses

8f0b64fb513e8c6cdd1f115856100a4ef5afe23e Better error messages for invalid addresses (Bezdrighin)

Pull request description:

  This PR addresses #20809.

  We add more detailed error messages in case an invalid address is provided inside the 'validateaddress' and 'getaddressinfo' RPC calls. This also covers the case when a user provides an address from a wrong network.

  We also add a functional test to test the new error messages.

ACKs for top commit:
  kristapsk:
    ACK 8f0b64fb513e8c6cdd1f115856100a4ef5afe23e
  meshcollider:
    Code review ACK 8f0b64fb513e8c6cdd1f115856100a4ef5afe23e

Tree-SHA512: ca0f806ab573e96b79e98d9f8c810b81fa99c638d9b5e4d99dc18c8bd2568e6a802ec305fdfb2983574a97a19a46fd53b77645f8078fb77e9deb24ad2a22cf93

情報元 - Merge #20832: rpc: Better error messages for invalid addresses · bitcoin/[email protected] · GitHub

Merge #20832: rpc: Better error messages for invalid addresses · bitcoin/bitcoin@4b15ffe · GitHub
スポンサーリンク

シェアする

フォローする

スポンサーリンク

トップへ戻る