[rpc] refactor: consolidate sendmany and sendtoaddress code

The only new behavior is some error codes are changed from -4 to -6.
This commit is contained in:
Sjors Provoost
2020-02-24 20:12:50 +01:00
parent 0101110f9b
commit 08fc6f6cfc
4 changed files with 72 additions and 85 deletions

View File

@@ -0,0 +1,8 @@
Low-level RPC Changes
---------------------
- To make RPC `sendtoaddress` more consistent with `sendmany` the following error
`sendtoaddress` codes were changed from `-4` to `-6`:
- Insufficient funds
- Fee estimation failed
- Transaction has too long of a mempool chain