Skip to content

Commit

Permalink
Merge pull request #6133 from xyzmaker123/fix-pause-in-fee-service
Browse files Browse the repository at this point in the history
Fix pause between fee requests
  • Loading branch information
ripcurlx authored Apr 21, 2022
2 parents 9431dd5 + 2073e68 commit dde4199
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/src/main/java/bisq/core/provider/fee/FeeService.java
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public static Coin getMinTakerFee(boolean currencyForFeeIsBtc) {
private long txFeePerVbyte = BTC_DEFAULT_TX_FEE;
private Map<String, Long> timeStampMap;
@Getter
private long lastRequest;
private long lastRequest = 0;
@Getter
private long minFeePerVByte;
private long epochInSecondAtLastRequest;
Expand Down Expand Up @@ -176,6 +176,7 @@ public void requestFees(@Nullable Runnable resultHandler, @Nullable FaultHandler
log.debug("We got a requestFees called again before min pause of {} minutes has passed.",
MIN_PAUSE_BETWEEN_REQUESTS_IN_MIN);
success();
return;
}

lastRequest = now;
Expand Down

0 comments on commit dde4199

Please sign in to comment.