mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-11 15:34:26 +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()
|
sync := s.eth.Downloader().Progress()
|
||||||
syncing = s.eth.BlockChain().CurrentHeader().Number.Uint64() >= sync.HighestBlock
|
syncing = s.eth.BlockChain().CurrentHeader().Number.Uint64() >= sync.HighestBlock
|
||||||
|
|
||||||
tipcap, _ := s.eth.ApiBackend.SuggestGasTipCap(context.Background())
|
price, _ := s.eth.ApiBackend.SuggestGasTipCap(context.Background())
|
||||||
if head := s.eth.ApiBackend.CurrentHeader(); head.BaseFee != nil {
|
gasprice = int(price.Uint64())
|
||||||
tipcap.Add(tipcap, head.BaseFee)
|
if basefee := s.eth.ApiBackend.CurrentHeader().BaseFee; basefee != nil {
|
||||||
|
gasprice += int(basefee.Uint64())
|
||||||
}
|
}
|
||||||
gasprice = int(tipcap.Uint64())
|
|
||||||
} else {
|
} else {
|
||||||
sync := s.les.Downloader().Progress()
|
sync := s.les.Downloader().Progress()
|
||||||
syncing = s.les.BlockChain().CurrentHeader().Number.Uint64() >= sync.HighestBlock
|
syncing = s.les.BlockChain().CurrentHeader().Number.Uint64() >= sync.HighestBlock
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue