-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: John Letey <[email protected]>
- Loading branch information
Showing
20 changed files
with
341 additions
and
139 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
- Add helper commands for broadcasting software upgrade and recover client | ||
messages. ([\#4](https://github.com/noble-assets/authority/pull/4)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
*Dec 6, 2024* | ||
|
||
This is a non-consensus breaking patch release to the v1 line. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
// Copyright 2024 NASD Inc. | ||
// | ||
// Use of this source code is governed by a BSL-style | ||
// license that can be found in the LICENSE file or at | ||
// https://mariadb.com/bsl11. | ||
|
||
package cli | ||
|
||
import ( | ||
"os" | ||
"path/filepath" | ||
|
||
"github.com/spf13/pflag" | ||
|
||
"cosmossdk.io/x/upgrade/types" | ||
) | ||
|
||
// parsePlan is copied from the Cosmos SDK because it is not exported. | ||
// | ||
// https://github.com/cosmos/cosmos-sdk/blob/x/upgrade/v0.1.4/x/upgrade/client/cli/parse.go#L9-L21 | ||
func parsePlan(fs *pflag.FlagSet, name string) (types.Plan, error) { | ||
height, err := fs.GetInt64(FlagUpgradeHeight) | ||
if err != nil { | ||
return types.Plan{}, err | ||
} | ||
|
||
info, err := fs.GetString(FlagUpgradeInfo) | ||
if err != nil { | ||
return types.Plan{}, err | ||
} | ||
|
||
return types.Plan{Name: name, Height: height, Info: info}, nil | ||
} | ||
|
||
// getDefaultDaemonName is copied from the Cosmos SDK because it is not exported. | ||
// | ||
// https://github.com/cosmos/cosmos-sdk/blob/x/upgrade/v0.1.4/x/upgrade/client/cli/tx.go#L184-L194 | ||
func getDefaultDaemonName() string { | ||
// DAEMON_NAME is specifically used here to correspond with the Cosmovisor setup env vars. | ||
name := os.Getenv("DAEMON_NAME") | ||
if len(name) == 0 { | ||
_, name = filepath.Split(os.Args[0]) | ||
} | ||
return name | ||
} |
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.