Skip to content

Commit

Permalink
ir: remove unused fields from fee section from config
Browse files Browse the repository at this point in the history
Signed-off-by: Andrey Butusov <[email protected]>
  • Loading branch information
End-rey committed Nov 27, 2024
1 parent a748d15 commit 73d6374
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
4 changes: 1 addition & 3 deletions cmd/neofs-ir/defaults.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,7 @@ func defaultConfiguration(cfg *viper.Viper) {
cfg.SetDefault("indexer.cache_timeout", 15*time.Second)

// extra fee values for working mode without notary contract
cfg.SetDefault("fee.main_chain", 5000_0000) // 0.5 Fixed8
cfg.SetDefault("fee.side_chain", 2_0000_0000) // 2.0 Fixed8
cfg.SetDefault("fee.named_container_register", 25_0000_0000) // 25.0 Fixed8
cfg.SetDefault("fee.main_chain", 5000_0000) // 0.5 Fixed8

cfg.SetDefault("control.authorized_keys", []string{})
cfg.SetDefault("control.grpc.endpoint", "")
Expand Down
4 changes: 1 addition & 3 deletions cmd/neofs-ir/internal/validate/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,7 @@ type validConfig struct {
} `mapstructure:"node"`

Fee struct {
MainChain int64 `mapstructure:"main_chain"`
SideChain int64 `mapstructure:"side_chain"`
NamedContainerRegister int64 `mapstructure:"named_container_register"`
MainChain int64 `mapstructure:"main_chain"`
} `mapstructure:"fee"`

Timers struct {
Expand Down
2 changes: 0 additions & 2 deletions pkg/innerring/config/fee.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ type FeeConfig struct {
}

// NewFeeConfig constructs FeeConfig from viper.Viper instance. Latter must not be nil.
//
// Fee for named container registration is taken from "fee.named_container_register" value.
func NewFeeConfig(v *viper.Viper) *FeeConfig {
return &FeeConfig{
mainchain: fixedn.Fixed8(v.GetInt64("fee.main_chain")),
Expand Down

0 comments on commit 73d6374

Please sign in to comment.