mirror of
https://github.com/alexgo-io/electrum-client.git
synced 2026-01-12 16:53:05 +08:00
Carry persistence policy across reconnects
This commit is contained in:
8
index.js
8
index.js
@@ -91,7 +91,13 @@ class ElectrumClient extends Client {
|
||||
reconnect() {
|
||||
debugLog("Electrum reconnecting...");
|
||||
this.initSocket();
|
||||
return this.initElectrum(this.electrumConfig);
|
||||
|
||||
if (this.persistencePolicy != null) {
|
||||
return this.initElectrum(this.electrumConfig, this.persistencePolicy);
|
||||
|
||||
} else {
|
||||
return this.initElectrum(this.electrumConfig);
|
||||
}
|
||||
}
|
||||
|
||||
// ElectrumX API
|
||||
|
||||
Reference in New Issue
Block a user