Browse Source

handle electrs batching detection better

terminal
Craig Raw 3 years ago
parent
commit
31f9cca33a
  1. 4
      src/main/java/com/sparrowwallet/sparrow/net/ElectrumServer.java

4
src/main/java/com/sparrowwallet/sparrow/net/ElectrumServer.java

@ -891,6 +891,10 @@ public class ElectrumServer {
if(server.startsWith("electrs/")) {
String electrsVersion = server.substring("electrs/".length());
int dashIndex = electrsVersion.indexOf('-');
if(dashIndex > -1) {
electrsVersion = electrsVersion.substring(0, dashIndex);
}
try {
Version version = new Version(electrsVersion);
if(version.compareTo(ELECTRS_MIN_BATCHING_VERSION) >= 0) {

Loading…
Cancel
Save