MCPcopy
hub / github.com/bnb-chain/bsc / Service

Struct Service

ethstats/ethstats.go:86–100  ·  view source on GitHub ↗

Service implements an Ethereum netstats reporting daemon that pushes local chain statistics up to a monitoring server.

Source from the content-addressed store, hash-verified

84// Service implements an Ethereum netstats reporting daemon that pushes local
85// chain statistics up to a monitoring server.
86type Service struct {
87 server *p2p.Server // Peer-to-peer server to retrieve networking infos
88 backend backend
89 engine consensus.Engine // Consensus engine to retrieve variadic block fields
90
91 node string // Name of the node to display on the monitoring page
92 pass string // Password to authorize access to the monitoring page
93 host string // Remote address of the monitoring service
94
95 pongCh chan struct{} // Pong notifications are fed into this channel
96 histCh chan []uint64 // History request block numbers are fed into this channel
97
98 headSub event.Subscription
99 txSub event.Subscription
100}
101
102// connWrapper is a wrapper to prevent concurrent-write or concurrent-read on the
103// websocket.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected