Skip to content
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

[Merged by Bors] - Ignore inactive validators in validator monitor #2396

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions beacon_node/beacon_chain/src/validator_monitor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -353,8 +353,7 @@ impl<T: EthSpec> ValidatorMonitor<T> {
"matched_head" => summary.is_previous_epoch_head_attester,
"epoch" => prev_epoch,
"validator" => id,

)
);
} else if summary.is_active_in_previous_epoch
&& !summary.is_previous_epoch_attester
{
Expand All @@ -364,6 +363,11 @@ impl<T: EthSpec> ValidatorMonitor<T> {
"epoch" => prev_epoch,
"validator" => id,
)
} else if !summary.is_active_in_previous_epoch {
michaelsproul marked this conversation as resolved.
Show resolved Hide resolved
// Monitored validator is not active, due to awaiting activation
// or being exited/withdrawn. Do not attempt to report on its
// attestations.
continue;
}

if summary.is_previous_epoch_attester {
Expand Down