Skip to content

Commit e1321d3

Browse files
committed
fix expected case of unknown monero peer count
1 parent 0ba3fb0 commit e1321d3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/src/main/java/haveno/core/api/XmrConnectionService.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,7 @@ public ReadOnlyObjectProperty<MoneroRpcConnection> connectionProperty() {
445445
}
446446

447447
public boolean hasSufficientPeersForBroadcast() {
448+
if (numConnections.get() < 0) return true; // we don't know how many connections we have, but that's expected with restricted node
448449
return numConnections.get() >= getMinBroadcastConnections();
449450
}
450451

0 commit comments

Comments
 (0)