This commit is contained in:
Manfred Karrer 2018-11-17 13:35:53 -05:00
parent 3157e86f8b
commit 89825a3ef8
No known key found for this signature in database
GPG Key ID: 401250966A6B2C46

View File

@ -328,7 +328,7 @@ class TakeOfferDataModel extends OfferDataModel {
// leading to a smaller tx and too high fees. Simply updating the fee estimation would lead to changed required funds // leading to a smaller tx and too high fees. Simply updating the fee estimation would lead to changed required funds
// and if funds get higher (if tx get larger) the user would get confused (adding small inputs would increase total required funds). // and if funds get higher (if tx get larger) the user would get confused (adding small inputs would increase total required funds).
// So that would require more thoughts how to deal with all those cases. // So that would require more thoughts how to deal with all those cases.
public void estimateTxSize() { private void estimateTxSize() {
Address fundingAddress = btcWalletService.getFreshAddressEntry().getAddress(); Address fundingAddress = btcWalletService.getFreshAddressEntry().getAddress();
int txSize = 0; int txSize = 0;
if (btcWalletService.getBalance(Wallet.BalanceType.AVAILABLE).isPositive()) { if (btcWalletService.getBalance(Wallet.BalanceType.AVAILABLE).isPositive()) {