mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-19 21:31:37 +00:00
ethstats: fix full node interface post 1559 (#23159)
This commit is contained in:
parent
5d4ad88364
commit
012c4cb0fb
1 changed files with 4 additions and 4 deletions
|
|
@ -816,11 +816,11 @@ func (s *Service) reportStats(conn *connWrapper) error {
|
|||
sync := s.eth.Downloader().Progress()
|
||||
syncing = s.eth.BlockChain().CurrentHeader().Number.Uint64() >= sync.HighestBlock
|
||||
|
||||
tipcap, _ := s.eth.ApiBackend.SuggestGasTipCap(context.Background())
|
||||
if head := s.eth.ApiBackend.CurrentHeader(); head.BaseFee != nil {
|
||||
tipcap.Add(tipcap, head.BaseFee)
|
||||
price, _ := s.eth.ApiBackend.SuggestGasTipCap(context.Background())
|
||||
gasprice = int(price.Uint64())
|
||||
if basefee := s.eth.ApiBackend.CurrentHeader().BaseFee; basefee != nil {
|
||||
gasprice += int(basefee.Uint64())
|
||||
}
|
||||
gasprice = int(tipcap.Uint64())
|
||||
} else {
|
||||
sync := s.les.Downloader().Progress()
|
||||
syncing = s.les.BlockChain().CurrentHeader().Number.Uint64() >= sync.HighestBlock
|
||||
|
|
|
|||
Loading…
Reference in a new issue