Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix mainnet sa #2454

Merged
merged 8 commits into from
Dec 16, 2024
Merged
Show file tree
Hide file tree
Changes from 2 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
3 changes: 0 additions & 3 deletions cmd/blockchaincmd/add_validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,7 @@
return cmd
}

func preAddChecks(network models.Network, sovereign bool) error {

Check failure on line 129 in cmd/blockchaincmd/add_validator.go

View workflow job for this annotation

GitHub Actions / Lint

unused-parameter: parameter 'network' seems to be unused, consider removing or renaming it as _ (revive)
if sovereign && network.Kind == models.Mainnet {
return errNotSupportedOnMainnet
}
if nodeEndpoint != "" && createLocalValidator {
return fmt.Errorf("cannot set both --node-endpoint and --create-local-validator")
}
Expand Down
1 change: 1 addition & 0 deletions cmd/contractcmd/init_validator_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ var (
networkoptions.Devnet,
networkoptions.EtnaDevnet,
networkoptions.Fuji,
networkoptions.Mainnet,
}
validatorManagerFlags ValidatorManagerFlags
initPOSManagerFlags POSManagerSpecFlags
Expand Down
7 changes: 4 additions & 3 deletions pkg/constants/etna.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ var (
const StakingEtnaMinimumDuration = 100 * time.Second

var EtnaActivationTime = map[uint32]time.Time{
avagoconstants.FujiID: time.Date(2024, time.November, 25, 16, 0, 0, 0, time.UTC),
EtnaDevnetNetworkID: time.Date(2024, time.October, 9, 20, 0, 0, 0, time.UTC),
LocalNetworkID: upgrade.Default.EtnaTime,
avagoconstants.FujiID: time.Date(2024, time.November, 25, 16, 0, 0, 0, time.UTC),
avagoconstants.MainnetID: time.Date(2024, time.December, 16, 17, 0, 0, 0, time.UTC),
EtnaDevnetNetworkID: time.Date(2024, time.October, 9, 20, 0, 0, 0, time.UTC),
LocalNetworkID: upgrade.Default.EtnaTime,
}
1 change: 1 addition & 0 deletions sdk/interchain/signature-aggregator.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ func initSignatureAggregator(
return nil, fmt.Errorf("failed to create signature aggregator: %w", err)
}
sa.aggregator = signatureAggregator
time.Sleep(1 * time.Minute)
return sa, nil
}

Expand Down
Loading