9c29e61826
In this commit, we add a new function, CraftSweepAllTx. This function allows callers to craft a transaction which sweeps ALL outputs from the wallet to a single target address. It can either be used for UTXO consolidation (at the cost of privacy by co-mingling inputs), or simply to sweep all funds out of a wallet for various reasons. In an attempt to ensure this method is loosely coupled and testable, for all behavior structs, we create brand new interface to accept. This ensures that we only rely on the minimal number of methods needed to perform our duty. |
||
---|---|---|
.. | ||
backend_mock_test.go | ||
defaults_rpctest.go | ||
defaults.go | ||
fee_estimator_mock_test.go | ||
input.go | ||
log.go | ||
store_mock.go | ||
store_test.go | ||
store.go | ||
sweeper_test.go | ||
sweeper.go | ||
test_utils.go | ||
txgenerator.go | ||
walletsweep.go |