Skip to content

Commit

Permalink
set blockhistory to 15
Browse files Browse the repository at this point in the history
  • Loading branch information
Farber98 committed Oct 31, 2024
1 parent 014d1e2 commit 1da438f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/solana/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ var defaultConfigSet = Chain{
MaxRetries: ptr(int64(0)), // max number of retries (default = 0). when config.MaxRetries < 0), interpreted as MaxRetries = nil and rpc node will do a reasonable number of retries

// fee estimator
FeeEstimatorMode: ptr("fixed"),
FeeEstimatorMode: ptr("blockhistory"),
ComputeUnitPriceMax: ptr(uint64(1_000)),
ComputeUnitPriceMin: ptr(uint64(0)),
ComputeUnitPriceDefault: ptr(uint64(0)),
FeeBumpPeriod: config.MustNewDuration(3 * time.Second), // set to 0 to disable fee bumping
BlockHistoryPollPeriod: config.MustNewDuration(5 * time.Second),
ComputeUnitLimitDefault: ptr(uint32(200_000)), // set to 0 to disable adding compute unit limit
EstimateComputeUnitLimit: ptr(false), // set to false to disable compute unit limit estimation
BlockHistorySize: ptr(uint64(1)), // 1: LatestBlockEstimator; >1: MultipleBlocksEstimator where n is number of blocks.
BlockHistorySize: ptr(uint64(15)), // 1: LatestBlockEstimator; >1: MultipleBlocksEstimator where n is number of blocks.
}

//go:generate mockery --name Config --output ./mocks/ --case=underscore --filename config.go
Expand Down

0 comments on commit 1da438f

Please sign in to comment.