From 12c2b88ab09cb3cb16020fff0630d730d5f9f014 Mon Sep 17 00:00:00 2001 From: LeoZhang Date: Mon, 11 Mar 2024 21:08:01 +0800 Subject: [PATCH] [R4R]-[estimataGas]feat: Set suggest tip cap to zero --- eth/api_backend.go | 2 +- les/api_backend.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/eth/api_backend.go b/eth/api_backend.go index 8b8fa8f45b..f22ea59a1c 100644 --- a/eth/api_backend.go +++ b/eth/api_backend.go @@ -358,7 +358,7 @@ func (b *EthAPIBackend) SyncProgress() ethereum.SyncProgress { } func (b *EthAPIBackend) SuggestGasTipCap(ctx context.Context) (*big.Int, error) { - return b.gpo.SuggestTipCap(ctx) + return big.NewInt(0), nil } func (b *EthAPIBackend) FeeHistory(ctx context.Context, blockCount int, lastBlock rpc.BlockNumber, rewardPercentiles []float64) (firstBlock *big.Int, reward [][]*big.Int, baseFee []*big.Int, gasUsedRatio []float64, err error) { diff --git a/les/api_backend.go b/les/api_backend.go index 8a5ed1ba75..1d88023f6e 100644 --- a/les/api_backend.go +++ b/les/api_backend.go @@ -269,7 +269,7 @@ func (b *LesApiBackend) ProtocolVersion() int { } func (b *LesApiBackend) SuggestGasTipCap(ctx context.Context) (*big.Int, error) { - return b.gpo.SuggestTipCap(ctx) + return big.NewInt(0), nil } func (b *LesApiBackend) FeeHistory(ctx context.Context, blockCount int, lastBlock rpc.BlockNumber, rewardPercentiles []float64) (firstBlock *big.Int, reward [][]*big.Int, baseFee []*big.Int, gasUsedRatio []float64, err error) {