Skip to content

Commit f98931c

Browse files
authored
Merge pull request #477 from Concordium/fix-block-metrics-avg-fin-time
Only consider blocks where we know finalization time in block_metrics
2 parents d415847 + 95c7a34 commit f98931c

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

backend-rust/.sqlx/query-c754d11e741e0ae84e7a1e0261d7784b8f70395edff9814d9bb36fa83af794b8.json renamed to backend-rust/.sqlx/query-9017d71491699344844fd5d01607e599cc54530c4b78fc2b3b5859670d9c0400.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

backend-rust/CHANGELOG.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ Database schema version: 2
2525
- Fix typo in `versions` endpoint.
2626
- Fix unit conversion for `avg_finalization_time` in `Query::block_metrics`.
2727
- Issue for `Query::transaction_metrics` producing an internal error when query period is beyond the genesis block.
28-
- Next and previous page on contracts
29-
- Contract rejected event skips in the correct way
28+
- Next and previous page on contracts.
29+
- Contract rejected event skips in the correct way.
3030
- Fix issue where `ContractUpdated::message` attempted to parse empty messages, resulting in parsing error messages instead of `null`.
31-
31+
- Issue making `avgFinalizationTime` field of `Query::block_metrics` always return `null`.
3232

3333
## [0.1.19] - 2025-01-30
3434

backend-rust/src/graphql_api/block_metrics.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ impl QueryBlockMetrics {
126126
slot_time,
127127
cumulative_finalization_time
128128
FROM blocks
129+
WHERE cumulative_finalization_time IS NOT NULL
129130
ORDER BY slot_time DESC
130131
LIMIT 1
131132
)

0 commit comments

Comments
 (0)