mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-23 06:55:08 +01:00
Merge pull request #4767 from jmacxx/fix_issue_4765
Remove default fee rate from Bisq startup screen
This commit is contained in:
commit
0345c795e2
3 changed files with 14 additions and 7 deletions
|
@ -117,24 +117,23 @@ public class WalletAppSetup {
|
||||||
String result;
|
String result;
|
||||||
if (exception == null) {
|
if (exception == null) {
|
||||||
double percentage = (double) downloadPercentage;
|
double percentage = (double) downloadPercentage;
|
||||||
long fees = feeService.getTxFeePerByte().longValue();
|
|
||||||
btcSyncProgress.set(percentage);
|
btcSyncProgress.set(percentage);
|
||||||
if (percentage == 1) {
|
if (percentage == 1) {
|
||||||
String feeRate = Res.get("mainView.footer.btcFeeRate", fees);
|
|
||||||
result = Res.get("mainView.footer.btcInfo",
|
result = Res.get("mainView.footer.btcInfo",
|
||||||
Res.get("mainView.footer.btcInfo.synchronizedWith"),
|
Res.get("mainView.footer.btcInfo.synchronizedWith"),
|
||||||
getBtcNetworkAsString() + " / " + feeRate);
|
getBtcNetworkAsString(),
|
||||||
|
feeService.getFeeTextForDisplay());
|
||||||
getBtcSplashSyncIconId().set("image-connection-synced");
|
getBtcSplashSyncIconId().set("image-connection-synced");
|
||||||
|
|
||||||
downloadCompleteHandler.run();
|
downloadCompleteHandler.run();
|
||||||
} else if (percentage > 0.0) {
|
} else if (percentage > 0.0) {
|
||||||
result = Res.get("mainView.footer.btcInfo",
|
result = Res.get("mainView.footer.btcInfo",
|
||||||
Res.get("mainView.footer.btcInfo.synchronizingWith"),
|
Res.get("mainView.footer.btcInfo.synchronizingWith"),
|
||||||
getBtcNetworkAsString() + ": " + FormattingUtils.formatToPercentWithSymbol(percentage));
|
getBtcNetworkAsString() + ": " + FormattingUtils.formatToPercentWithSymbol(percentage), "");
|
||||||
} else {
|
} else {
|
||||||
result = Res.get("mainView.footer.btcInfo",
|
result = Res.get("mainView.footer.btcInfo",
|
||||||
Res.get("mainView.footer.btcInfo.connectingTo"),
|
Res.get("mainView.footer.btcInfo.connectingTo"),
|
||||||
getBtcNetworkAsString());
|
getBtcNetworkAsString(), "");
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
result = Res.get("mainView.footer.btcInfo",
|
result = Res.get("mainView.footer.btcInfo",
|
||||||
|
|
|
@ -20,6 +20,7 @@ package bisq.core.provider.fee;
|
||||||
import bisq.core.dao.governance.param.Param;
|
import bisq.core.dao.governance.param.Param;
|
||||||
import bisq.core.dao.governance.period.PeriodService;
|
import bisq.core.dao.governance.period.PeriodService;
|
||||||
import bisq.core.dao.state.DaoStateService;
|
import bisq.core.dao.state.DaoStateService;
|
||||||
|
import bisq.core.locale.Res;
|
||||||
|
|
||||||
import bisq.common.UserThread;
|
import bisq.common.UserThread;
|
||||||
import bisq.common.config.Config;
|
import bisq.common.config.Config;
|
||||||
|
@ -190,4 +191,11 @@ public class FeeService {
|
||||||
public ReadOnlyIntegerProperty feeUpdateCounterProperty() {
|
public ReadOnlyIntegerProperty feeUpdateCounterProperty() {
|
||||||
return feeUpdateCounter;
|
return feeUpdateCounter;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getFeeTextForDisplay() {
|
||||||
|
// only show the fee rate if it has been initialized from the service (see feeUpdateCounter)
|
||||||
|
if (feeUpdateCounter.get() > 0)
|
||||||
|
return Res.get("mainView.footer.btcFeeRate", txFeePerByte);
|
||||||
|
return "";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -252,8 +252,8 @@ mainView.balance.locked.short=Locked
|
||||||
|
|
||||||
mainView.footer.usingTor=(using Tor)
|
mainView.footer.usingTor=(using Tor)
|
||||||
mainView.footer.localhostBitcoinNode=(localhost)
|
mainView.footer.localhostBitcoinNode=(localhost)
|
||||||
mainView.footer.btcInfo={0} {1}
|
mainView.footer.btcInfo={0} {1} {2}
|
||||||
mainView.footer.btcFeeRate=Current fee rate: {0} sat/vB
|
mainView.footer.btcFeeRate=/ Current fee rate: {0} sat/vB
|
||||||
mainView.footer.btcInfo.initializing=Connecting to Bitcoin network
|
mainView.footer.btcInfo.initializing=Connecting to Bitcoin network
|
||||||
mainView.footer.bsqInfo.synchronizing=/ Synchronizing DAO
|
mainView.footer.bsqInfo.synchronizing=/ Synchronizing DAO
|
||||||
mainView.footer.btcInfo.synchronizingWith=Synchronizing with
|
mainView.footer.btcInfo.synchronizingWith=Synchronizing with
|
||||||
|
|
Loading…
Add table
Reference in a new issue