Skip to content

Commit 957aa02

Browse files
author
colinlyguo
committed
revert a comment change
1 parent d1a249e commit 957aa02

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

eth/gasprice/gasprice.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -208,9 +208,8 @@ func (oracle *Oracle) SuggestTipCap(ctx context.Context) (*big.Int, error) {
208208
// high-priced txs are causing the suggested tip cap to be high.
209209
pendingTxCount, _ := oracle.backend.StatsWithMinBaseFee(head.BaseFee)
210210
if pendingTxCount < oracle.congestedThreshold {
211-
// Determine the suggested gas price based on the network configuration:
212-
// - Before Curie (EIP-1559): total gas price = base fee + tip cap.
213-
// - After Curie (EIP-1559): use the default tip cap.
211+
// Before Curie (EIP-1559), we need to return the total suggested gas price. After Curie we return defaultGasTip wei as the tip cap,
212+
// as the base fee is set separately or added manually for legacy transactions.
214213
price := oracle.defaultGasTip
215214
if !oracle.backend.ChainConfig().IsCurie(head.Number) {
216215
price = oracle.defaultBasePrice

0 commit comments

Comments
 (0)