mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-04 08:44:28 +00:00
81c8b130c6
* only accept the highest finalized slot from peers * use best peer for state requests * peer id * rem old tests * req peers tests pass * warn level support for peer not having the same protocol * pretty * best peer * comments * req peers done * tests passing * fully functional * enforce receiving from the best peer * comments * lint fixes
31 lines
893 B
Go
31 lines
893 B
Go
package initialsync
|
|
|
|
import (
|
|
"github.com/prometheus/client_golang/prometheus"
|
|
"github.com/prometheus/client_golang/prometheus/promauto"
|
|
)
|
|
|
|
var (
|
|
// Metrics
|
|
sentBatchedBlockReq = promauto.NewCounter(prometheus.CounterOpts{
|
|
Name: "initsync_sent_batched_block_req",
|
|
Help: "The number of sent batched block req",
|
|
})
|
|
batchedBlockReq = promauto.NewCounter(prometheus.CounterOpts{
|
|
Name: "initsync_batched_block_req",
|
|
Help: "The number of received batch blocks responses",
|
|
})
|
|
recBlock = promauto.NewCounter(prometheus.CounterOpts{
|
|
Name: "initsync_received_blocks",
|
|
Help: "The number of received blocks",
|
|
})
|
|
stateReq = promauto.NewCounter(prometheus.CounterOpts{
|
|
Name: "initsync_state_req",
|
|
Help: "The number of sent state requests",
|
|
})
|
|
recState = promauto.NewCounter(prometheus.CounterOpts{
|
|
Name: "initsync_received_state",
|
|
Help: "The number of received state",
|
|
})
|
|
)
|