Skip to content

Commit d5d4cae

Browse files
committed
Reset all defaults for realm #1
1 parent 07dd9ae commit d5d4cae

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

blockchain/contracts/scripts/deploy_lit_node_contracts.js

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -538,10 +538,21 @@ async function deployLitNodeContracts(deployNodeConfig) {
538538
tx = await stakingContract.addRealm();
539539
await tx.wait();
540540

541-
// Ensure the default keyset is set
542-
let realmConfig = stakingContract.realmConfig(1);
543-
console.log('Config for realm 1', realmConfig);
544-
realmConfig.defaultKeySet = DEFAULT_KEY_SET_NAME;
541+
// Ensure the default keyset is set
542+
let realmConfig = {
543+
maxConcurrentRequests: 1000,
544+
maxPresignCount: 25,
545+
minPresignCount: 10,
546+
peerCheckingIntervalSecs: 7,
547+
maxPresignConcurrency: 2,
548+
rpcHealthcheckEnabled: true,
549+
minEpochForRewards: 3,
550+
permittedValidatorsOn: false,
551+
defaultKeySet: DEFAULT_KEY_SET_NAME,
552+
};
553+
// 1000n, 25n, 10n,
554+
// 7n, 2n, true,
555+
// 3n, false, ''
545556
tx = await stakingContract.setRealmConfig(1, realmConfig);
546557
await tx.wait();
547558

0 commit comments

Comments
 (0)