good morning!!!!
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
bor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
open
bor
Commits
6b6d3190
Unverified
Commit
6b6d3190
authored
Jul 5, 2021
by
Péter Szilágyi
Browse files
Options
Downloads
Patches
Plain Diff
ethstats: fix full node interface post 1559
parent
3b053185
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
ethstats/ethstats.go
+5
-2
5 additions, 2 deletions
ethstats/ethstats.go
with
5 additions
and
2 deletions
ethstats/ethstats.go
+
5
−
2
View file @
6b6d3190
...
@@ -77,7 +77,7 @@ type fullNodeBackend interface {
...
@@ -77,7 +77,7 @@ type fullNodeBackend interface {
Miner
()
*
miner
.
Miner
Miner
()
*
miner
.
Miner
BlockByNumber
(
ctx
context
.
Context
,
number
rpc
.
BlockNumber
)
(
*
types
.
Block
,
error
)
BlockByNumber
(
ctx
context
.
Context
,
number
rpc
.
BlockNumber
)
(
*
types
.
Block
,
error
)
CurrentBlock
()
*
types
.
Block
CurrentBlock
()
*
types
.
Block
Suggest
Price
(
ctx
context
.
Context
)
(
*
big
.
Int
,
error
)
Suggest
GasTipCap
(
ctx
context
.
Context
)
(
*
big
.
Int
,
error
)
}
}
// Service implements an Ethereum netstats reporting daemon that pushes local
// Service implements an Ethereum netstats reporting daemon that pushes local
...
@@ -780,8 +780,11 @@ func (s *Service) reportStats(conn *connWrapper) error {
...
@@ -780,8 +780,11 @@ func (s *Service) reportStats(conn *connWrapper) error {
sync
:=
fullBackend
.
Downloader
()
.
Progress
()
sync
:=
fullBackend
.
Downloader
()
.
Progress
()
syncing
=
fullBackend
.
CurrentHeader
()
.
Number
.
Uint64
()
>=
sync
.
HighestBlock
syncing
=
fullBackend
.
CurrentHeader
()
.
Number
.
Uint64
()
>=
sync
.
HighestBlock
price
,
_
:=
fullBackend
.
Suggest
Price
(
context
.
Background
())
price
,
_
:=
fullBackend
.
Suggest
GasTipCap
(
context
.
Background
())
gasprice
=
int
(
price
.
Uint64
())
gasprice
=
int
(
price
.
Uint64
())
if
basefee
:=
fullBackend
.
CurrentHeader
()
.
BaseFee
;
basefee
!=
nil
{
gasprice
+=
int
(
basefee
.
Uint64
())
}
}
else
{
}
else
{
sync
:=
s
.
backend
.
Downloader
()
.
Progress
()
sync
:=
s
.
backend
.
Downloader
()
.
Progress
()
syncing
=
s
.
backend
.
CurrentHeader
()
.
Number
.
Uint64
()
>=
sync
.
HighestBlock
syncing
=
s
.
backend
.
CurrentHeader
()
.
Number
.
Uint64
()
>=
sync
.
HighestBlock
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment