@dashevo/dashcore-lib
Advanced tools
Comparing version 0.18.8 to 0.18.9
@@ -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>", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3738257
57509