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

@dashevo/dashcore-lib

Package Overview
Dependencies
Maintainers
8
Versions
117
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dashevo/dashcore-lib - npm Package Compare versions

Comparing version 0.18.8 to 0.18.9

25

lib/deterministicmnlist/SimplifiedMNList.js

@@ -87,12 +87,13 @@ /* eslint-disable */

// we cannot verify the quorum merkle root for DashCore vers. < 0.16
if (this.quorumList[0].isOutdatedRPC) {
this.merkleRootQuorums = diff.merkleRootQuorums;
return
if (this.quorumList.length > 0) {
// we cannot verify the quorum merkle root for DashCore vers. < 0.16
if (this.quorumList[0].isOutdatedRPC) {
this.merkleRootQuorums = diff.merkleRootQuorums;
return
}
this.merkleRootQuorums = this.calculateMerkleRootQuorums();
if (this.lastDiffMerkleRootQuorums !== this.merkleRootQuorums) {
throw new Error("Quorum merkle root from the diff doesn't match calculated merkle root after diff is applied");
}
}
this.merkleRootQuorums = this.calculateMerkleRootQuorums();
if (this.lastDiffMerkleRootQuorums !== this.merkleRootQuorums) {
throw new Error("Quorum merkle root from the diff doesn't match calculated merkle root after diff is applied");
}
}

@@ -275,4 +276,4 @@ };

var llmqTypes = [];
switch (this.network) {
case Networks.livenet:
switch (this.network.name) {
case Networks.livenet.name:
llmqTypes = [constants.LLMQ_TYPES.LLMQ_TYPE_50_60,

@@ -282,3 +283,3 @@ constants.LLMQ_TYPES.LLMQ_TYPE_400_60,

return llmqTypes;
case Networks.testnet:
case Networks.testnet.name:
// TODO: add proper devnet identifier to networks.js

@@ -285,0 +286,0 @@ // maybe through existing 'customnet' functionality

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

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

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