File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ type fullNodeBackend interface {
77
77
Miner () * miner.Miner
78
78
BlockByNumber (ctx context.Context , number rpc.BlockNumber ) (* types.Block , error )
79
79
CurrentBlock () * types.Block
80
- SuggestPrice (ctx context.Context ) (* big.Int , error )
80
+ SuggestGasTipCap (ctx context.Context ) (* big.Int , error )
81
81
}
82
82
83
83
// Service implements an Ethereum netstats reporting daemon that pushes local
@@ -780,8 +780,11 @@ func (s *Service) reportStats(conn *connWrapper) error {
780
780
sync := fullBackend .Downloader ().Progress ()
781
781
syncing = fullBackend .CurrentHeader ().Number .Uint64 () >= sync .HighestBlock
782
782
783
- price , _ := fullBackend .SuggestPrice (context .Background ())
783
+ price , _ := fullBackend .SuggestGasTipCap (context .Background ())
784
784
gasprice = int (price .Uint64 ())
785
+ if basefee := fullBackend .CurrentHeader ().BaseFee ; basefee != nil {
786
+ gasprice += int (basefee .Uint64 ())
787
+ }
785
788
} else {
786
789
sync := s .backend .Downloader ().Progress ()
787
790
syncing = s .backend .CurrentHeader ().Number .Uint64 () >= sync .HighestBlock
You can’t perform that action at this time.
0 commit comments