New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

rn-electrum-client

Package Overview
Dependencies
Maintainers
0
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rn-electrum-client - npm Package Compare versions

Comparing version

to
0.0.22

12

helpers/index.js

@@ -87,3 +87,3 @@ const ElectrumClient = require("../lib/electrum_client");

//customPeers = A list of peers added by the user to connect to by default in lieu of the default peer list.
const start = ({ id = Math.random(), network = "", peers = [], customPeers = [], net, tls} = {}, keepAliveInterval = undefined) => {
const start = ({ clientName, protocolVersion, id = Math.random(), network = "", peers = [], customPeers = [], net, tls} = {}, keepAliveInterval = undefined) => {
const method = "connectToPeer";

@@ -104,3 +104,7 @@ electrumKeepAliveInterval = keepAliveInterval || electrumKeepAliveInterval;

try {clearInterval(electrumKeepAlive);} catch {}
clients.clientName = clientName;
clients.protocolVersion = protocolVersion;
clients.network = network;
let customPeersLength = 0;

@@ -153,2 +157,8 @@ try {customPeersLength = customPeers.length;} catch {}

}
// Identify the client to the server and negotiate the protocol version.
if (clients.clientName && clients.protocolVersion) {
await clients.mainClient[network].server_version(clients.clientName, clients.protocolVersion);
}
/*

@@ -155,0 +165,0 @@ * The scripthash doesn't have to be valid.

2

package.json
{
"name": "rn-electrum-client",
"version": "0.0.21",
"version": "0.0.22",
"description": "Electrum protocol client for React Native & Node.js",

@@ -5,0 +5,0 @@ "main": "index.js",