Skip to content

Commit

Permalink
fix: validator sign stats.
Browse files Browse the repository at this point in the history
  • Loading branch information
romever committed Nov 18, 2024
1 parent c39b2d2 commit 5f637fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/internal/logic/cacherefresh.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func SignStatsCacheJob(ctx context.Context, svcCtx *svc.ServiceContext) {
continue
}

validatorSigns, err := svcCtx.BlockSignatureModel.ValidatorSignStats(ctx, signAddresses, 11)
validatorSigns, err := svcCtx.BlockSignatureModel.ValidatorSignStats(ctx, signAddresses, 12)
if err != nil && !errors.Is(err, sqlx.ErrNotFound) {
logc.Errorf(ctx, "ValidatorSignStats error: %v", err)
continue
Expand Down
2 changes: 1 addition & 1 deletion docs/sql/init.sql
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ CREATE INDEX IF NOT EXISTS block_signature_timestamp_idx ON block_signature (tim
CREATE MATERIALIZED VIEW block_count_days AS
select DISTINCT DATE_TRUNC('day', timestamp) AS day, count(distinct height)
from block_signature
where timestamp >= now() - interval '11 days'
where timestamp >= now() - interval '12 days'
group by day;

CREATE TABLE IF NOT EXISTS delegator
Expand Down

0 comments on commit 5f637fa

Please sign in to comment.