Skip to content

Commit 13382fd

Browse files
committed
fix: it should use total validator size instead of minNodeCount
1 parent 609269c commit 13382fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/lib/lit-core.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ export class LitCore {
315315
* See rust/lit-node/common/lit-node-testnet/src/validator.rs > threshold for more details
316316
*/
317317
protected _getThreshold = (): number => {
318-
return Math.max(3, Math.floor((this.config.minNodeCount * 2) / 3));
318+
return Math.max(3, Math.floor((this.connectedNodes.size * 2) / 3));
319319
};
320320

321321
private async _handleStakingContractStateChange(

0 commit comments

Comments
 (0)