Auto merge of #2797 - str4d:2493-active-merging, r=bitcartel

Implement z_mergetoaddress for combining UTXOs and notes

Closes #2493.
This commit is contained in:
Homu
2018-02-22 20:59:51 -08:00
14 changed files with 2168 additions and 6 deletions

View File

@@ -4,6 +4,23 @@ release-notes at release time)
Notable changes
===============
UTXO and note merging
---------------------
In order to simplify the process of combining many small UTXOs and notes into a
few larger ones, a new RPC method `z_mergetoaddress` has been added. It merges
funds from t-addresses, z-addresses, or both, and sends them to a single
t-address or z-address.
Unlike most other RPC methods, `z_mergetoaddress` operates over a particular
quantity of UTXOs and notes, instead of a particular amount of ZEC. By default,
it will merge 50 UTXOs and 10 notes at a time; these limits can be adjusted with
the parameters `transparent_limit` and `shielded_limit`.
`z_mergetoaddress` also returns the number of UTXOs and notes remaining in the
given addresses, which can be used to automate the merging process (for example,
merging until the number of UTXOs falls below some value).
UTXO memory accounting
----------------------