Skip to content
This repository has been archived by the owner on Oct 20, 2024. It is now read-only.

Commit

Permalink
Remove unused INCLUSION_RATE_FACTOR config (#369)
Browse files Browse the repository at this point in the history
  • Loading branch information
hazim-j authored Jan 27, 2024
1 parent 4c71897 commit e0100b7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
3 changes: 0 additions & 3 deletions internal/config/mempool.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ func NewReputationConstantsFromEnv() *entities.ReputationConstants {
viper.SetDefault("erc4337_bundler_throttled_entity_live_blocks", 10)
viper.SetDefault("erc4337_bundler_throttled_entity_bundle_count", 4)
viper.SetDefault("erc4337_bundler_min_inclusion_rate_denominator", 10)
viper.SetDefault("erc4337_bundler_inclusion_rate_factor", 10)
viper.SetDefault("erc4337_bundler_throttling_slack", 10)
viper.SetDefault("erc4337_bundler_ban_slack", 50)

Expand All @@ -26,7 +25,6 @@ func NewReputationConstantsFromEnv() *entities.ReputationConstants {
_ = viper.BindEnv("erc4337_bundler_throttled_entity_live_blocks")
_ = viper.BindEnv("erc4337_bundler_throttled_entity_bundle_count")
_ = viper.BindEnv("erc4337_bundler_min_inclusion_rate_denominator")
_ = viper.BindEnv("erc4337_bundler_inclusion_rate_factor")
_ = viper.BindEnv("erc4337_bundler_throttling_slack")
_ = viper.BindEnv("erc4337_bundler_ban_slack")

Expand All @@ -39,7 +37,6 @@ func NewReputationConstantsFromEnv() *entities.ReputationConstants {
ThrottledEntityLiveBlocks: viper.GetInt("erc4337_bundler_throttled_entity_live_blocks"),
ThrottledEntityBundleCount: viper.GetInt("erc4337_bundler_throttled_entity_bundle_count"),
MinInclusionRateDenominator: viper.GetInt("erc4337_bundler_min_inclusion_rate_denominator"),
InclusionRateFactor: viper.GetInt("erc4337_bundler_inclusion_rate_factor"),
ThrottlingSlack: viper.GetInt("erc4337_bundler_throttling_slack"),
BanSlack: viper.GetInt("erc4337_bundler_ban_slack"),
}
Expand Down
1 change: 0 additions & 1 deletion pkg/modules/entities/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ type ReputationConstants struct {
ThrottledEntityLiveBlocks int
ThrottledEntityBundleCount int
MinInclusionRateDenominator int
InclusionRateFactor int
ThrottlingSlack int
BanSlack int
}

0 comments on commit e0100b7

Please sign in to comment.