Skip to content

Commit 136c785

Browse files
committed
n-m sign way fixed
1 parent 475269a commit 136c785

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bls/BLSApkRegistry.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ contract BLSApkRegistry is Initializable, OwnableUpgradeable, IBLSApkRegistry, B
9393
msg.sender == operator,
9494
"BLSApkRegistry.registerBLSPublicKey: this caller is not operator"
9595
);
96-
96+
9797
require(
9898
blsRegisterWhitelist[msg.sender],
9999
"BLSApkRegistry.registerBLSPublicKey: this address have not permission to register bls key"
@@ -159,7 +159,7 @@ contract BLSApkRegistry is Initializable, OwnableUpgradeable, IBLSApkRegistry, B
159159
uint256 thresholdNodes = (totalNodes * 2) / 3;
160160

161161
require(
162-
totalNodes - nonSingerNode > thresholdNodes,
162+
totalNodes - nonSingerNode >= thresholdNodes,
163163
"BLSSignatureChecker.checkSignatures: sign node less than threshold node"
164164
);
165165

0 commit comments

Comments
 (0)