Catch NoSuchMethodError in ElectrumX, and log it, just in case we ever reencounter a dependency issue.

This commit is contained in:
CalDescent 2022-05-27 10:33:37 +02:00
parent e95249dc1b
commit b17b28d9d6

View File

@ -739,6 +739,10 @@ public class ElectrumX extends BitcoinyBlockchainProvider {
} catch (IOException | NoSuchElementException e) { } catch (IOException | NoSuchElementException e) {
// Unable to send, or receive -- try another server? // Unable to send, or receive -- try another server?
return null; return null;
} catch (NoSuchMethodError e) {
// Likely an SSL dependency issue - retries are unlikely to succeed
LOGGER.error("ElectrumX output stream error", e);
return null;
} }
long endTime = System.currentTimeMillis(); long endTime = System.currentTimeMillis();