Fix bootstrap node handling for localhost

This commit is contained in:
Manfred Karrer 2015-05-22 23:28:38 +02:00
parent 6fbd717bdb
commit 71df030a11
5 changed files with 7 additions and 4 deletions

View file

@ -166,7 +166,7 @@ class MainViewModel implements ViewModel {
Utilities.setTimeout(2000, () -> setBitcoinNetworkSyncProgress(walletService.downloadPercentageProperty().get()));
walletService.numPeersProperty().addListener((observable, oldValue, newValue) -> {
log.debug("Bitcoin peers " + newValue);
numBTCPeers.set(String.valueOf(newValue) + " peers");
if ((int) newValue < 1) {
if (lostBTCConnectionTimeoutTimer != null)

View file

@ -112,7 +112,6 @@ public class WithdrawalView extends ActivatableViewAndModel {
withdrawFromTextField.textProperty(), amountTextField.textProperty(), withdrawToTextField.textProperty()));
table.getSelectionModel().selectedItemProperty().addListener((observableValue, oldValue, newValue) -> {
if (newValue != null) {
if (Coin.ZERO.compareTo(newValue.getBalance()) <= 0) {
amountTextField.setText(newValue.getBalance().toPlainString());
withdrawFromTextField.setText(newValue.getAddressEntry().getAddressString());

View file

@ -403,6 +403,9 @@ public class PendingTradesViewModel extends ActivatableWithDataModel<PendingTrad
buyerState.set(PendingTradesViewModel.BuyerState.REQUEST_WITHDRAWAL);
break;
case WITHDRAW_COMPLETED:
break;
default:
log.warn("unhandled viewState " + processState);
break;