Skip to content

Commit

Permalink
Merge pull request #119 from migalabs/fix/pools-missed-blocks
Browse files Browse the repository at this point in the history
Also check proposer index as proposed can be false
  • Loading branch information
tdahar authored Jun 13, 2024
2 parents 65a211c + 9947532 commit 316dd90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/db/pools_summary.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ var (
COUNT(CASE WHEN f_missing_head = TRUE THEN 1 ELSE null END) as count_missing_head,
COUNT(*) as count_expected_attestations,
SUM(CASE WHEN t_proposer_duties.f_proposed = TRUE THEN 1 ELSE 0 END) as proposed_blocks_performance,
SUM(CASE WHEN t_proposer_duties.f_proposed = FALSE THEN 1 ELSE 0 END) as missed_blocks_performance,
SUM(CASE WHEN t_proposer_duties.f_proposed = FALSE and t_validator_rewards_summary.f_val_idx = t_proposer_duties.f_val_idx THEN 1 ELSE 0 END) as missed_blocks_performance,
count(distinct(t_validator_rewards_summary.f_val_idx)) as number_active_vals,
AVG(f_inclusion_delay) as avg_inclusion_delay
FROM t_validator_rewards_summary
Expand Down

0 comments on commit 316dd90

Please sign in to comment.