feat: Update Cosmos SDK to CometBFT v2 (#24837)

Co-authored-by: aljo242 <alex@interchainlabs.io>
This commit is contained in:
Zachary Becker
2025-06-04 17:34:20 +00:00
committed by GitHub
co-authored by aljo242
parent b78a6c660e
commit fd170b5140
341 changed files with 9024 additions and 7892 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"errors"
"io"
cmtcfg "github.com/cometbft/cometbft/config"
cmtcfg "github.com/cometbft/cometbft/v2/config"
dbm "github.com/cosmos/cosmos-db"
"github.com/spf13/cobra"
"github.com/spf13/viper"
+8 -5
View File
@@ -9,8 +9,8 @@ import (
"path/filepath"
"time"
cmtconfig "github.com/cometbft/cometbft/config"
cmttime "github.com/cometbft/cometbft/types/time"
cmtconfig "github.com/cometbft/cometbft/v2/config"
cmttime "github.com/cometbft/cometbft/v2/types/time"
"github.com/spf13/cobra"
"github.com/spf13/pflag"
@@ -51,8 +51,11 @@ var (
flagAPIAddress = "api.address"
flagPrintMnemonic = "print-mnemonic"
flagStakingDenom = "staking-denom"
flagCommitTimeout = "commit-timeout"
flagSingleHost = "single-host"
// flagCommitTimeout is a deprecated flag whose value will not be used.
//
// Deprecated: set NextBlockDelay on the app with baseapp.SetNextBlockDelay()
flagCommitTimeout = "commit-timeout"
flagSingleHost = "single-host"
)
type initArgs struct {
@@ -81,6 +84,7 @@ type startArgs struct {
outputDir string
printMnemonic bool
rpcAddress string
// Deprecated: use baseapp.SetNextBlockDelay() instead.
timeoutCommit time.Duration
}
@@ -156,7 +160,6 @@ Example:
args.algo, _ = cmd.Flags().GetString(flags.FlagKeyType)
args.bondTokenDenom, _ = cmd.Flags().GetString(flagStakingDenom)
args.singleMachine, _ = cmd.Flags().GetBool(flagSingleHost)
config.Consensus.TimeoutCommit, err = cmd.Flags().GetDuration(flagCommitTimeout)
if err != nil {
return err
}