From 58184f0212306e3e9359ab94df0eebc50b2f317a Mon Sep 17 00:00:00 2001 From: Daniel Liu <139250065@qq.com> Date: Mon, 8 Sep 2025 15:41:16 +0800 Subject: [PATCH] ethstats: fix full node interface post 1559 #23159 (#1451) --- ethstats/ethstats.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ethstats/ethstats.go b/ethstats/ethstats.go index 0b9bfb787c..f3b68d4c94 100644 --- a/ethstats/ethstats.go +++ b/ethstats/ethstats.go @@ -87,7 +87,7 @@ type fullNodeBackend interface { Miner() *miner.Miner BlockByNumber(ctx context.Context, number rpc.BlockNumber) (*types.Block, error) CurrentBlock() *types.Block - SuggestPrice(ctx context.Context) (*big.Int, error) + SuggestGasTipCap(ctx context.Context) (*big.Int, error) } // Service implements an Ethereum netstats reporting daemon that pushes local @@ -842,7 +842,7 @@ func (s *Service) reportStats(conn *connWrapper) error { sync := fullBackend.Downloader().Progress() syncing = fullBackend.CurrentHeader().Number.Uint64() >= sync.HighestBlock - price, _ := s.backend.SuggestGasTipCap(context.Background()) + price, _ := fullBackend.SuggestGasTipCap(context.Background()) gasprice = int(price.Uint64()) if basefee := fullBackend.CurrentHeader().BaseFee; basefee != nil { gasprice += int(basefee.Uint64())