-
Notifications
You must be signed in to change notification settings - Fork 156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add sweepaccount tool. #173
Conversation
This tool creates on-chain transactions, one per used address in a source account, to sweep all output value to new addresses in a different destination account.
One improvement would be to use a readme.go to explain the utility. |
I've used it with btcwallet so I'm definitely in favor of the tool. |
The tool can only be used interactively on the command line so I think it's fine to require typing in the rpc password in a prompt that doesn't echo. |
Regarding docs, this tool is really only useful with the current account setup where the imported account can not create change addresses. This allows moving those funds from the imported account to another account (and this is why it defaults the source account to the imported account). Since imported funds can now be spent (change addresses are derived for account 0) and the imported account is planned to be removed (where every account can have imported keys) there is less need for this tool and I would be wary about encouraging its long term use. I can add doco later, but it should cover these details and we may even decide to remove the tool later once the accounts situation has been fixed. |
I can live with that then. |
Is there a documentation on how to use it?
|
@JFixby it gives an unsigned transaction: |
* add uniform padding to all pages * remove hard-coded dimensions and text sizes
This tool creates on-chain transactions, one per used address in a
source account, to sweep all output value to new addresses in a
different destination account.
This is a cherry-pick of the btcwallet commit 4ee9ce5.