Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix pause between fee requests #6133

Merged
merged 1 commit into from Apr 21, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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