mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-19 21:31:37 +00:00
parent
84e19a7b7f
commit
58184f0212
1 changed files with 2 additions and 2 deletions
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Reference in a new issue