-
Notifications
You must be signed in to change notification settings - Fork 995
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stream Duties Client Implementation #5867
Merged
Merged
Changes from 194 commits
Commits
Show all changes
213 commits
Select commit
Hold shift + click to select a range
2da2e37
include validator client stream
rauljordan 1832c6d
Update validator/client/validator_attest.go
rauljordan 929c2ce
gazelle
rauljordan 07090ed
Merge branch 'client-stream-duties' of github.com:prysmaticlabs/prysm…
rauljordan 735efba
Merge branch 'master' into client-stream-duties
rauljordan 341c552
rem extraneous logs
rauljordan c915e29
Merge branch 'client-stream-duties' of github.com:prysmaticlabs/prysm…
rauljordan b29dd21
fixing tests
rauljordan f8e0ae2
resolve most tests
rauljordan 3fc8eaf
gaz
rauljordan 2141a76
add lock
rauljordan dcac9ca
ivan feedback
rauljordan 337d8cd
pass tests for update protect
rauljordan dd1428b
Merge branch 'master' into client-stream-duties
rauljordan 10d360f
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] aa2a785
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] 67f6817
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] 817e8a5
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] c2ca798
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] c4b7dbd
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] a66fffa
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] 76c1cf9
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] 64fb758
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] a0dc414
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] e382d78
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] 96044ae
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] 951d298
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] f95438f
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] d35b682
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] 64a4fe3
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] 3d0339a
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] 1c873f6
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] e020e51
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] f809489
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] 3f9c317
gaz
rauljordan ad0da88
duties gaz
rauljordan 1979dd7
no need for canonical head slot
rauljordan efe921c
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] 1f4315a
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] 43d31bd
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] 01cfd0c
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] 8c0e967
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] a2ad1fa
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] 0d8d55a
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] 1d791ec
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] 8ca68e3
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] fb78890
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] 023a42b
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] 3fe204a
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] 414f50e
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] 71fea1f
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] 16019dc
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] bb7b80a
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] 019f513
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] d48c7a0
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] 414b61c
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] 7163d9d
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] 0f4c993
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] 2b05397
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] 31903cc
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] c6179f6
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] 39c33c5
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] 183f1f9
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] da6563c
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] c475276
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] bcb4683
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] 6079f25
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] 66508c7
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] ad740f7
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] 176de3a
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] bcaa965
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] e1a8ad5
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] 6593cc7
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] 1b39303
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] 7f688dc
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] 2a93f9d
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] 3d3c0f8
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] adcb379
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] a19b910
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] 46ca4e1
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] ea64665
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] e4e608d
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] 50c2ae5
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] 5a17569
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] ff474a8
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] e39b839
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] 30594c9
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] 8390ca8
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] e17c744
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] babc57b
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] b6efe08
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] f810191
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] e108349
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] caf15fb
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] f0e1c2e
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] e4934eb
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] b8b781c
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] 2a4619e
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] 120adfe
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] 5644a27
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] d8650be
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] 5ba736d
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] 90fdb7e
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] 943c924
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] c2bd4a8
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] ef3f1ef
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] 3fd4467
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] ec6812c
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] 234d1e0
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] 3c5ec64
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] cc54ea7
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] e6a8be8
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] 37a8e3c
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] e18fa92
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] 6578a56
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] b906005
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] 1d4d90e
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] e8423a5
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] 9d8790b
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] a338ae6
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] 330c973
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] a0aa213
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] 72ae827
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] afbd096
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] c0448e0
fix ctx leak
rauljordan aa58db7
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] 107102a
fmt
rauljordan 5285e54
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] a46061d
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] 2c6dd47
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] d2f56dc
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] 8a8c0a1
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] b6115a1
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] 0a54e8d
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] 1be7970
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] bbf8ba8
add in feature flag
rauljordan 8573407
Merge branch 'client-stream-duties' of github.com:prysmaticlabs/prysm…
rauljordan b813562
add streaming subpackage
rauljordan 5a98026
add polling/streaming separation
rauljordan 2c039d8
able to build
rauljordan 761330d
fix duplicate package names
rauljordan 5b4c41d
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] 9ddc97e
fix polling
rauljordan 185345d
Merge branch 'client-stream-duties' of github.com:prysmaticlabs/prysm…
rauljordan bf12680
imports
rauljordan 89da83b
confirm it works
rauljordan d3d46cd
fixed up comment
rauljordan dd053dc
go lint comments
rauljordan 3cdb202
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] 3c6fa38
gaz
rauljordan d4c7401
Merge branch 'client-stream-duties' of github.com:prysmaticlabs/prysm…
rauljordan 4bba515
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] 562e2bf
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] bd3960b
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] 90c77a6
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] 074dcfb
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] b55fa3c
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] d463d71
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] b3c3522
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] ae6a321
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] e803a4e
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] 8803b83
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] f46ef34
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] b7e190e
resolve confs
rauljordan 5f43eae
build
rauljordan ab96efd
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] f08c976
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] ab8fab4
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] 09a5c57
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] 3bf4351
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] 5935a71
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] 7164da3
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] 82944e1
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] 4dc8bad
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] 63a0dd7
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] ac9ceaf
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] e2ea6d3
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] fc0495a
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] 3b7b87f
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] f621bc2
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] 2f83d4c
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] 147a9dc
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] 7f57cea
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] 69c552c
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] f5fc206
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] effb50e
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] f910e89
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] a4b75df
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] 409c35c
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] d73590b
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] db86068
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] e590eab
fix up confs
rauljordan eef02f0
Merge branch 'client-stream-duties' of github.com:prysmaticlabs/prysm…
rauljordan a031e74
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] e3239a7
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] 6aef3ca
Update validator/client/streaming/service_test.go
rauljordan d830eb8
tidy
rauljordan 75c3899
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] d0a9710
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] 77279f8
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] 321af4e
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] c65c3bb
fmt
rauljordan b9734ea
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] c9ca9b4
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] 0e7c681
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] 0656523
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] 89d7697
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] c041355
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] 4341481
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] c9f9fbc
add stream duties to e2e
rauljordan bbbeb44
Merge refs/heads/master into client-stream-duties
prylabs-bulldozer[bot] 5cdca39
add stream duties to e2e flags
rauljordan 892c279
Merge branch 'master' into client-stream-duties
rauljordan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
load("@prysm//tools/go:def.bzl", "go_library") | ||
|
||
go_library( | ||
name = "go_default_library", | ||
srcs = ["metrics.go"], | ||
importpath = "github.com/prysmaticlabs/prysm/validator/client/metrics", | ||
visibility = ["//validator/client:__subpackages__"], | ||
deps = [ | ||
"@com_github_prometheus_client_golang//prometheus:go_default_library", | ||
"@com_github_prometheus_client_golang//prometheus/promauto:go_default_library", | ||
], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,121 @@ | ||
package metrics | ||
|
||
import ( | ||
"github.com/prometheus/client_golang/prometheus" | ||
"github.com/prometheus/client_golang/prometheus/promauto" | ||
) | ||
|
||
var ( | ||
// ValidatorStatusesGaugeVec used to track validator statuses by public key. | ||
ValidatorStatusesGaugeVec = promauto.NewGaugeVec( | ||
prometheus.GaugeOpts{ | ||
Namespace: "validator", | ||
Name: "statuses", | ||
Help: "validator statuses: 0 UNKNOWN, 1 DEPOSITED, 2 PENDING, 3 ACTIVE, 4 EXITING, 5 SLASHING, 6 EXITED", | ||
}, | ||
[]string{ | ||
// Validator pubkey. | ||
"pubkey", | ||
}, | ||
) | ||
// ValidatorAggSuccessVec used to count successful aggregations. | ||
ValidatorAggSuccessVec = promauto.NewCounterVec( | ||
prometheus.CounterOpts{ | ||
Namespace: "validator", | ||
Name: "successful_aggregations", | ||
}, | ||
[]string{ | ||
// validator pubkey | ||
"pubkey", | ||
}, | ||
) | ||
// ValidatorAggFailVec used to count failed aggregations. | ||
ValidatorAggFailVec = promauto.NewCounterVec( | ||
prometheus.CounterOpts{ | ||
Namespace: "validator", | ||
Name: "failed_aggregations", | ||
}, | ||
[]string{ | ||
// validator pubkey | ||
"pubkey", | ||
}, | ||
) | ||
// ValidatorProposeSuccessVec used to count successful proposals. | ||
ValidatorProposeSuccessVec = promauto.NewCounterVec( | ||
prometheus.CounterOpts{ | ||
Namespace: "validator", | ||
Name: "successful_proposals", | ||
}, | ||
[]string{ | ||
// validator pubkey | ||
"pubkey", | ||
}, | ||
) | ||
// ValidatorProposeFailVec used to count failed proposals. | ||
ValidatorProposeFailVec = promauto.NewCounterVec( | ||
prometheus.CounterOpts{ | ||
Namespace: "validator", | ||
Name: "failed_proposals", | ||
}, | ||
[]string{ | ||
// validator pubkey | ||
"pubkey", | ||
}, | ||
) | ||
// ValidatorProposeFailVecSlasher used to count failed proposals by slashing protection. | ||
ValidatorProposeFailVecSlasher = promauto.NewCounterVec( | ||
prometheus.CounterOpts{ | ||
Name: "validator_proposals_rejected_total", | ||
Help: "Count the block proposals rejected by slashing protection.", | ||
}, | ||
[]string{ | ||
// validator pubkey | ||
"pubkey", | ||
}, | ||
) | ||
// ValidatorBalancesGaugeVec used to keep track of validator balances by public key. | ||
ValidatorBalancesGaugeVec = promauto.NewGaugeVec( | ||
prometheus.GaugeOpts{ | ||
Namespace: "validator", | ||
Name: "balance", | ||
Help: "current validator balance.", | ||
}, | ||
[]string{ | ||
// validator pubkey | ||
"pubkey", | ||
}, | ||
) | ||
// ValidatorAttestSuccessVec used to count successful attestations. | ||
ValidatorAttestSuccessVec = promauto.NewCounterVec( | ||
prometheus.CounterOpts{ | ||
Namespace: "validator", | ||
Name: "successful_attestations", | ||
}, | ||
[]string{ | ||
// validator pubkey | ||
"pubkey", | ||
}, | ||
) | ||
// ValidatorAttestFailVec used to count failed attestations. | ||
ValidatorAttestFailVec = promauto.NewCounterVec( | ||
prometheus.CounterOpts{ | ||
Namespace: "validator", | ||
Name: "failed_attestations", | ||
}, | ||
[]string{ | ||
// validator pubkey | ||
"pubkey", | ||
}, | ||
) | ||
// ValidatorAttestFailVecSlasher used to count failed attestations by slashing protection. | ||
ValidatorAttestFailVecSlasher = promauto.NewCounterVec( | ||
prometheus.CounterOpts{ | ||
Name: "validator_attestations_rejected_total", | ||
Help: "Count the attestations rejected by slashing protection.", | ||
}, | ||
[]string{ | ||
// validator pubkey | ||
"pubkey", | ||
}, | ||
) | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
validator/client/fake_validator_test.go → ...tor/client/polling/fake_validator_test.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package client | ||
package polling | ||
|
||
import ( | ||
"context" | ||
|
2 changes: 1 addition & 1 deletion
2
validator/client/runner.go → validator/client/polling/runner.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package client | ||
package polling | ||
|
||
import ( | ||
"context" | ||
|
2 changes: 1 addition & 1 deletion
2
validator/client/runner_test.go → validator/client/polling/runner_test.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package client | ||
package polling | ||
|
||
import ( | ||
"context" | ||
|
4 changes: 1 addition & 3 deletions
4
validator/client/service.go → validator/client/polling/service.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
validator/client/service_test.go → validator/client/polling/service_test.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package client | ||
package polling | ||
|
||
import ( | ||
"context" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need to review, just consolidated metrics into a shared folder