Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

coin-hive-stratum

Package Overview
Dependencies
Maintainers
1
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

coin-hive-stratum - npm Package Compare versions

Comparing version 2.1.3 to 2.1.4

2

package.json
{
"name": "coin-hive-stratum",
"version": "2.1.3",
"version": "2.1.4",
"description": "proxy to use CoinHive miner on any stratum pool",

@@ -5,0 +5,0 @@ "main": "build",

@@ -176,2 +176,6 @@ import * as WebSocket from "ws";

isEmpty(connection: Connection): boolean {
return connection.miners.length === 0 && connection.donations.length === 0;
}
getStats(): Stats {

@@ -208,3 +212,3 @@ return Object.keys(this.connections).reduce(

const connections = this.connections[connectionId];
const availableConnection = connections.filter(connection => this.isAvailable(connection));
const availableConnection = connections.filter(connection => this.isEmpty(connection));
const unusedConnections = availableConnection.slice(1);

@@ -211,0 +215,0 @@ unusedConnections.forEach(unusedConnection => {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc