mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-12-24 12:46:45 +00:00
start with simple RPC for maximum compatibility
This commit is contained in:
parent
2e0ca1b4fa
commit
084a3c76af
1 changed files with 3 additions and 2 deletions
|
@ -605,6 +605,9 @@ public class ElectrumServer {
|
|||
reader.setUncaughtExceptionHandler(ConnectionService.this);
|
||||
reader.start();
|
||||
|
||||
//Start with simple RPC for maximum compatibility
|
||||
electrumServerRpc = new SimpleElectrumServerRpc();
|
||||
|
||||
List<String> serverVersion = electrumServer.getServerVersion();
|
||||
firstCall = false;
|
||||
|
||||
|
@ -612,8 +615,6 @@ public class ElectrumServer {
|
|||
if(supportsBatching(serverVersion)) {
|
||||
log.debug("Upgrading to batched JSON-RPC");
|
||||
electrumServerRpc = new BatchedElectrumServerRpc();
|
||||
} else {
|
||||
electrumServerRpc = new SimpleElectrumServerRpc();
|
||||
}
|
||||
|
||||
BlockHeaderTip tip;
|
||||
|
|
Loading…
Reference in a new issue