Skip to content

Commit

Permalink
fix default quorum typo
Browse files Browse the repository at this point in the history
  • Loading branch information
chm-diederichs committed Jan 19, 2024
1 parent d5b0571 commit e226d27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/verifier.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ function toMap (nodes) {

function defaultQuorum (man) {
if (typeof man.quorum === 'number') return man.quorum
if (!man.signers || man.signers.length) return 0
if (!man.signers || !man.signers.length) return 0
return (man.signers.length >> 1) + 1
}

Expand Down

0 comments on commit e226d27

Please sign in to comment.