Don't create a wallet address when not needed

This commit is contained in:
Oscar Guindzberg 2020-09-28 20:18:17 -03:00
parent 58afc00282
commit e2f74f0250
No known key found for this signature in database
GPG key ID: 209796BF2E1D4F75

View file

@ -985,7 +985,7 @@ public class BtcWalletService extends WalletService {
counter++;
fee = txFeeForWithdrawalPerByte.multiply(txSize);
// We use a dummy address for the output
final String dummyReceiver = getFreshAddressEntry().getAddressString();
final String dummyReceiver = LegacyAddress.fromKey(params, new ECKey()).toBase58();
SendRequest sendRequest = getSendRequestForMultipleAddresses(fromAddresses, dummyReceiver, amount, fee, null, aesKey);
wallet.completeTx(sendRequest);
tx = sendRequest.tx;