Socket
Socket
Sign inDemoInstall

@dashevo/dashcore-lib

Package Overview
Dependencies
17
Maintainers
8
Versions
114
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.19.6 to 0.19.7

dist/dashcore-lib.js

2

lib/chainlock/chainlock.js

@@ -119,3 +119,3 @@ const { isObject, isString } = require('lodash');

static fromHex(string) {
return ChainLock.fromBuffer(Buffer.from(string, 'hex'));
return ChainLock.fromString(string);
}

@@ -122,0 +122,0 @@

@@ -49,4 +49,8 @@ const BufferWriter = require('../encoding/bufferwriter');

const diff = new SimplifiedMNListDiff(simplifiedMNListDiff, this.network);
this.network = diff.network;
// only when we apply the first diff we set the network
if (!this.network) {
this.network = diff.network;
}
if (this.baseBlockHash === constants.NULL_HASH) {

@@ -145,3 +149,3 @@ /* If the base block hash is a null hash, then this is the first time we apply any diff.

if (quorumListByType[i].quorums.length === quorum.getParams().activeCount) {
quorumListByType[i].quorums.shift();
throw new Error(`Trying to add more quorums to quorum type ${quorum.llmqType} than its activeCount of ${quorum.getParams().activeCount} permits`);
}

@@ -148,0 +152,0 @@ quorumListByType[i].quorums.push(quorum);

{
"name": "@dashevo/dashcore-lib",
"version": "0.19.6",
"version": "0.19.7",
"description": "A pure and powerful JavaScript Dash library.",

@@ -5,0 +5,0 @@ "author": "Dash Core Group, Inc. <dev@dash.org>",

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc