@dashevo/dashcore-lib
Advanced tools
Comparing version 0.19.6 to 0.19.7
@@ -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
3949315
187
24991