mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-23 15:00:30 +01:00
Remove requestTxFee method with empty handler
This commit is contained in:
parent
a4b39135f8
commit
fdafb1cc3a
1 changed files with 6 additions and 8 deletions
|
@ -83,6 +83,8 @@ import java.util.Map;
|
|||
import java.util.Optional;
|
||||
import java.util.UUID;
|
||||
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
import static com.google.common.base.Preconditions.checkNotNull;
|
||||
|
||||
public abstract class MutableOfferDataModel extends OfferDataModel implements BsqBalanceListener {
|
||||
|
@ -280,7 +282,7 @@ public abstract class MutableOfferDataModel extends OfferDataModel implements Bs
|
|||
priceFeedService.setCurrencyCode(tradeCurrencyCode.get());
|
||||
|
||||
// We request to get the actual estimated fee
|
||||
requestTxFee();
|
||||
requestTxFee(null);
|
||||
|
||||
// Set the default values (in rare cases if the fee request was not done yet we get the hard coded default values)
|
||||
// But offer creation happens usually after that so we should have already the value from the estimation service.
|
||||
|
@ -501,15 +503,11 @@ public abstract class MutableOfferDataModel extends OfferDataModel implements Bs
|
|||
this.marketPriceMargin = marketPriceMargin;
|
||||
}
|
||||
|
||||
void requestTxFee() {
|
||||
requestTxFee(() -> {
|
||||
});
|
||||
}
|
||||
|
||||
void requestTxFee(Runnable actionHandler) {
|
||||
void requestTxFee(@Nullable Runnable actionHandler) {
|
||||
feeService.requestFees(() -> {
|
||||
txFeeFromFeeService = feeService.getTxFee(feeTxSize);
|
||||
calculateTotalToPay();
|
||||
if (actionHandler != null)
|
||||
actionHandler.run();
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue