Skip to content

Commit

Permalink
fix(server/v2): make CometBFTServer implement HasStartFlags (cosmos#2…
Browse files Browse the repository at this point in the history
  • Loading branch information
ocnc2 authored Jun 26, 2024
1 parent 38c1d6a commit 2936073
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions server/v2/cometbft/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ const (
)

var _ serverv2.ServerComponent[transaction.Tx] = (*CometBFTServer[transaction.Tx])(nil)
var _ serverv2.HasCLICommands = (*CometBFTServer[transaction.Tx])(nil)
var _ serverv2.HasStartFlags = (*CometBFTServer[transaction.Tx])(nil)

type CometBFTServer[T transaction.Tx] struct {
Node *node.Node
Expand Down Expand Up @@ -196,8 +198,8 @@ func getGenDocProvider(cfg *cmtcfg.Config) func() (node.ChecksummedGenesisDoc, e
}
}

func (s *CometBFTServer[T]) StartCmdFlags() pflag.FlagSet {
flags := *pflag.NewFlagSet("cometbft", pflag.ExitOnError)
func (s *CometBFTServer[T]) StartCmdFlags() *pflag.FlagSet {
flags := pflag.NewFlagSet("cometbft", pflag.ExitOnError)
flags.Bool(flagWithComet, true, "Run abci app embedded in-process with CometBFT")
flags.String(flagAddress, "tcp://127.0.0.1:26658", "Listen address")
flags.String(flagTransport, "socket", "Transport protocol: socket, grpc")
Expand Down

0 comments on commit 2936073

Please sign in to comment.