Remove hasSufficientPeersForBroadcast check from OfferBookView

This commit is contained in:
Manfred Karrer 2018-01-19 21:59:59 -05:00
parent fab97fcaf8
commit 93ef9e6963
No known key found for this signature in database
GPG key ID: 401250966A6B2C46
2 changed files with 1 additions and 5 deletions

View file

@ -430,7 +430,7 @@ public class OfferBookView extends ActivatableViewAndModel<GridPane, OfferBookVi
}
private void onTakeOffer(Offer offer) {
if (model.isBootstrapped() && model.hasSufficientPeersForBroadcast())
if (model.isBootstrapped())
offerActionHandler.onTakeOffer(offer);
else
new Popup<>().information(Res.get("popup.warning.notFullyConnected")).show();

View file

@ -258,10 +258,6 @@ class OfferBookViewModel extends ActivatableViewModel {
return p2PService.isBootstrapped();
}
boolean hasSufficientPeersForBroadcast() {
return walletsSetup.hasSufficientPeersForBroadcast();
}
TradeCurrency getSelectedTradeCurrency() {
return selectedTradeCurrency;
}