cmd, dashboard, eth, p2p: separate full nodes from light ones on the dashboard#19606
cmd, dashboard, eth, p2p: separate full nodes from light ones on the dashboard#19606kurkomisi wants to merge 5 commits intoethereum:masterfrom
Conversation
1f54991 to
66a69b7
Compare
There was a problem hiding this comment.
Pls remove the sync mode, that's mostly an internal detail, is not that useful on the outside, at least not now.
There was a problem hiding this comment.
Pls remove empty lines from in between these imports. The only empty line should be between stdlib and externals.
There was a problem hiding this comment.
Pls remove the sync mode, that's mostly an internal detail, is not that useful on the outside, at least not now.
There was a problem hiding this comment.
Pls remove the sync mode, that's mostly an internal detail, is not that useful on the outside, at least not now.
There was a problem hiding this comment.
I'd rather we don't add a method here. If you use admin.nodeInfo (or the equivalent call against the Eth object), you should be able to derive this whether eth, les or both protocols are advertised.
There was a problem hiding this comment.
This seems to be Peer.Enode(), can't we get rid of this extra redundancy?
3ea7735 to
abc3abb
Compare
| } | ||
| if remoteIP != nil { | ||
| fd = newMeteredConn(fd, true, remoteIP) | ||
| var addr *net.TCPAddr |
There was a problem hiding this comment.
@fjl Could you please take a look? I didn't know what is the proper solution for this merge conflict.
There was a problem hiding this comment.
The relevant information is that I use the TCPAddr instead of the IP.
| Type MeteredPeerEventType // Type of peer event | ||
| IP net.IP // IP address of the peer | ||
| ID enode.ID // NodeID of the peer | ||
| Addr string // TCP address of the peer |
There was a problem hiding this comment.
Isn't this also available via Peer?
47dbae5 to
33cdcc1
Compare
|
closing because I am merging #19397 instead. |
|
Why? This is a lot more complete |
|
Sorry, I meant I'm merging #19762 which includes this PR. |
Supersedes #19397
This PR contains the separation of the ETH peers from the LES peers on the dashboard.