Skip to content

Commit

Permalink
Merge pull request #5671 from oasisprotocol/kostko/fix/pricediscovery…
Browse files Browse the repository at this point in the history
…-fp-init

go/consensus/pricediscovery: Fix gas price initialization
  • Loading branch information
kostko committed May 1, 2024
2 parents 640613a + 349f686 commit b36b56c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 0 deletions.
Empty file added .changelog/5671.trivial.md
Empty file.
1 change: 1 addition & 0 deletions go/consensus/pricediscovery/pricediscovery.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ func (pd *priceDiscovery) worker(ctx context.Context, ch <-chan *consensus.Block
// New creates a new dynamic price discovery implementation.
func New(ctx context.Context, client consensus.ClientBackend, fallbackGasPrice uint64) (consensus.PriceDiscovery, error) {
pd := &priceDiscovery{
finalGasPrice: quantity.NewFromUint64(fallbackGasPrice),
fallbackGasPrice: quantity.NewFromUint64(fallbackGasPrice),
minGasPrice: quantity.NewQuantity(),
computedGasPrice: quantity.NewQuantity(),
Expand Down

0 comments on commit b36b56c

Please sign in to comment.