Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions blockchain/contracts/scripts/deploy_lit_node_contracts.js
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,24 @@ async function deployLitNodeContracts(deployNodeConfig) {
tx = await stakingContract.addRealm();
await tx.wait();

// Ensure the default keyset is set
let realmConfig = {
maxConcurrentRequests: 1000,
maxPresignCount: 25,
minPresignCount: 10,
peerCheckingIntervalSecs: 7,
maxPresignConcurrency: 2,
rpcHealthcheckEnabled: true,
minEpochForRewards: 3,
permittedValidatorsOn: false,
defaultKeySet: DEFAULT_KEY_SET_NAME,
};
// 1000n, 25n, 10n,
// 7n, 2n, true,
// 3n, false, ''
tx = await stakingContract.setRealmConfig(1, realmConfig);
await tx.wait();

// set the default keyset config
let defaultKeysetConfig = {
identifier: DEFAULT_KEY_SET_NAME,
Expand Down
1 change: 0 additions & 1 deletion rust/lit-node/lit-node-testnet/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,6 @@ impl TestSetupBuilder {
.epoch_length(self.epoch_length)
.max_presign_count_u64(self.max_presign_count)
.min_presign_count_u64(self.min_presign_count)
.default_key_set(Some(DEFAULT_KEY_SET_NAME.to_string()))
.build();

info!(
Expand Down
6 changes: 5 additions & 1 deletion rust/lit-node/lit-node-testnet/src/testnet/datil/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,11 @@ impl DatilTestnet {
let client = Arc::new(SignerMiddleware::new(self.provider.clone(), node_wallet));

let local_pubkey_router = PubkeyRouter::new(pubkey_router_address, client);
info!("Voting for root keys on the Datil chain for staker #{} with node address {:?}", idx + 1, node_account.node_address);
info!(
"Voting for root keys on the Datil chain for staker #{} with node address {:?}",
idx + 1,
node_account.node_address
);
let func = local_pubkey_router.vote_for_root_keys(staking_address, root_keys.clone());
let tx = func.send().await.unwrap();
let _receipt = tx.await.unwrap();
Expand Down