[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 committed 2020-06-19 11:17:06 +02:00
1 parent 0101110f9b
commit 08fc6f6cfc
4 files changed
+72 -85

No files matched your search

+8
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