feat(server/v2/cometbft): config (#20989)
This commit is contained in:
@@ -51,6 +51,11 @@ type App[T transaction.Tx] struct {
|
||||
GRPCQueryDecoders map[string]func(requestBytes []byte) (gogoproto.Message, error)
|
||||
}
|
||||
|
||||
// Name returns the app name.
|
||||
func (a *App[T]) Name() string {
|
||||
return a.config.AppName
|
||||
}
|
||||
|
||||
// Logger returns the app logger.
|
||||
func (a *App[T]) Logger() log.Logger {
|
||||
return a.logger
|
||||
|
||||
@@ -117,7 +117,6 @@ func (a *AppBuilder[T]) Build(opts ...AppBuilderOption[T]) (*App[T], error) {
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("failed to create STF: %w", err)
|
||||
}
|
||||
|
||||
a.app.stf = stf
|
||||
|
||||
rs, err := rootstore.CreateRootStore(a.storeOptions)
|
||||
|
||||
Reference in New Issue
Block a user