mirror of
https://github.com/mempool/mempool.git
synced 2026-08-19 13:18:06 +02:00
Reconnect to electrum an unlimited amount of times every 1 seconds up disconnection
This commit is contained in:
parent
29aa3617d8
commit
53a44853b3
1 changed files with 1 additions and 1 deletions
|
|
@ -16,7 +16,7 @@ class BitcoindElectrsApi extends BitcoinApi implements AbstractBitcoinApi {
|
|||
super(bitcoinClient);
|
||||
|
||||
const electrumConfig = { client: 'mempool-v2', version: '1.4' };
|
||||
const electrumPersistencePolicy = { retryPeriod: 10000, maxRetry: 1000, callback: null };
|
||||
const electrumPersistencePolicy = { retryPeriod: 1000, maxRetry: Number.MAX_SAFE_INTEGER, callback: null };
|
||||
|
||||
const electrumCallbacks = {
|
||||
onConnect: (client, versionInfo) => { logger.info(`Connected to Electrum Server at ${config.ELECTRUM.HOST}:${config.ELECTRUM.PORT} (${JSON.stringify(versionInfo)})`); },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue