mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-08-01 12:31:23 +00:00
WalletTool: add support for the emptying out feature.
This commit is contained in:
@@ -431,6 +431,10 @@ public class WalletTool {
|
||||
}
|
||||
}
|
||||
Wallet.SendRequest req = Wallet.SendRequest.forTx(t);
|
||||
if (t.getOutputs().size() == 1 && t.getOutput(0).getValue().equals(wallet.getBalance())) {
|
||||
log.info("Emptying out wallet, recipient may get less than what you expect");
|
||||
req.emptyWallet = true;
|
||||
}
|
||||
req.fee = fee;
|
||||
if (allowUnconfirmed) {
|
||||
wallet.allowSpendingUnconfirmedTransactions();
|
||||
|
Reference in New Issue
Block a user