Skip to content

Commit 47d2712

Browse files
committed
gasprice: move policy-based minGasPrice retrieval our of NeoXBurn
Bug introduced by e427cda. Signed-off-by: Anna Shaleva <[email protected]>
1 parent 5f8252e commit 47d2712

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eth/gasprice/gasprice.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ func (oracle *Oracle) suggestTipCapInternal(ctx context.Context, head *types.Hea
236236
return nil, nil, nil, fmt.Errorf("failed to get state at %d to calculate base fee: %w", head.Number.Uint64(), err)
237237
}
238238
lastBaseFee = eip1559.CalcBaseFeeDBFT(cfg, head, state)
239-
if cfg.IsNeoXBurn(head.Number, head.Time) {
239+
if cfg.DBFT != nil {
240240
lastMinGasTipCap = state.GetState(systemcontracts.PolicyProxyHash, systemcontracts.GetMinGasTipCapStateHash()).Big()
241241
} else {
242242
lastMinGasTipCap = new(big.Int)

0 commit comments

Comments
 (0)