Browse Source
Updated connectToPeer method in helpers/index.js.
Updated peers in peers.json.
get-transaction-merkle
Corey Phillips
4 years ago
No known key found for this signature in database
GPG Key ID: 80C0975F55D3A07B
2 changed files with
2 additions and
3 deletions
-
helpers/index.js
-
helpers/peers.json
|
|
@ -140,7 +140,7 @@ const connectToPeer = ({ port = 50002, host = "", protocol = "ssl", network = "b |
|
|
|
resolve(connectionResponse); |
|
|
|
return; |
|
|
|
} |
|
|
|
const pingResponse = pingServer(); |
|
|
|
const pingResponse = await pingServer(); |
|
|
|
if (!pingResponse.error) { |
|
|
|
try { |
|
|
|
//Clear/Remove Electrum's keep-alive message.
|
|
|
@ -153,7 +153,6 @@ const connectToPeer = ({ port = 50002, host = "", protocol = "ssl", network = "b |
|
|
|
clients.peer[network] = { port, host, protocol }; |
|
|
|
} |
|
|
|
} |
|
|
|
await pauseExecution(); |
|
|
|
resolve(connectionResponse); |
|
|
|
} catch (e) {resolve({ error: true, data: e });} |
|
|
|
}); |
|
|
|
|
|
@ -1,5 +1,6 @@ |
|
|
|
{ |
|
|
|
"bitcoin": [ |
|
|
|
{"host": "electrum.aantonop.com", "ssl": 50002, "tcp": 50001}, |
|
|
|
{"host": "bitcoin.lukechilds.co", "ssl": 50002, "tcp": 50001}, |
|
|
|
{"host": "electrumx.nmdps", "ssl": 50002, "tcp": 50001}, |
|
|
|
{"host": "oneweek.duckdns.org", "ssl": 50002, "tcp": 50001}, |
|
|
@ -24,6 +25,5 @@ |
|
|
|
{"host": "bitcoin.cluelessperson.com", "ssl": 51002, "tcp": 51001}, |
|
|
|
{"host": "electrum.blockstream.info", "ssl": 60002, "tcp": 60001}, |
|
|
|
{"host": "testnet.aranguren.org", "ssl": 51002, "tcp": 51001}, |
|
|
|
{"host": "blockstream.info", "ssl": 993, "tcp": 143} |
|
|
|
] |
|
|
|
} |
|
|
|