Skip to content

Commit

Permalink
feat: add validator set quorum params (#201)
Browse files Browse the repository at this point in the history
* feat: add validator set quorum type

* chore: bump version to 0.19.10

* chore: update package-lock.json
  • Loading branch information
Cofresi authored Dec 10, 2020
1 parent e09348a commit f80ede7
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 37 deletions.
5 changes: 5 additions & 0 deletions lib/deterministicmnlist/QuorumEntry.js
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,11 @@ QuorumEntry.prototype.getParams = function getParams() {
params.size = 400;
params.threshold = 340;
return params;
case constants.LLMQ_TYPES.LLMQ_TYPE_100_67:
params.activeCount = 24;
params.size = 100;
params.threshold = 67;
return params;
case constants.LLMQ_TYPES.LLMQ_TYPE_LLMQ_TEST:
params.activeCount = 2;
params.size = 3;
Expand Down
71 changes: 35 additions & 36 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dashevo/dashcore-lib",
"version": "0.19.9",
"version": "0.19.10",
"description": "A pure and powerful JavaScript Dash library.",
"author": "Dash Core Group, Inc. <dev@dash.org>",
"main": "index.js",
Expand Down

0 comments on commit f80ede7

Please sign in to comment.