mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2026-08-11 00:47:41 +00:00
handle electrs batching detection better
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user