Skip to content

Commit

Permalink
(BIDS-2357) Merge branch 'BIDS-2357/partition_stats' of github.com:ma…
Browse files Browse the repository at this point in the history
…nuelsc/eth2-beaconchain-explorer into BIDS-2357/partition_stats
  • Loading branch information
manuelsc committed Dec 5, 2023
2 parents 2732b3c + d1dab00 commit ff9b82d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cmd/misc/commands/validator_stats_partition.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ func (s *statsMigratorConfig) partitionStatsTable(currentTableName, destinationT
}
} else {
// Sanity
err := sanityCheckIsSameExportedDay(nil, currentTableName)
err := sanityCheckIsSameExportedDay(nil, destinationTableName)
if err != nil {
return err
}
Expand Down Expand Up @@ -196,7 +196,7 @@ func tableRenaming(currentTableName, destinationTableName string, numberOfPartit
defer tx.Rollback()

// Sanity check same day height
err = sanityCheckIsSameExportedDay(tx, currentTableName)
err = sanityCheckIsSameExportedDay(tx, destinationTableName)
if err != nil {
return err
}
Expand Down
2 changes: 1 addition & 1 deletion handlers/dashboard.go
Original file line number Diff line number Diff line change
Expand Up @@ -1087,7 +1087,7 @@ func DashboardDataProposalsHistory(w http.ResponseWriter, r *http.Request) {
return
}

if uint64(dayEnd) >= lastDay {
if uint64(dayEnd) > lastDay {
_, lastExportedEpoch := utils.GetFirstAndLastEpochForDay(lastDay)

err = db.ReaderDb.Select(&todaysProposals, `
Expand Down

0 comments on commit ff9b82d

Please sign in to comment.