From 523a10f2c5e7caf4faacb950be2019da859dad3d Mon Sep 17 00:00:00 2001 From: Rafael Cardenas Date: Mon, 27 Jan 2025 11:54:50 -0600 Subject: [PATCH] chore: merge develop --- src/datastore/pg-store.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/datastore/pg-store.ts b/src/datastore/pg-store.ts index 9cf42ffae..8213150f2 100644 --- a/src/datastore/pg-store.ts +++ b/src/datastore/pg-store.ts @@ -4563,7 +4563,7 @@ export class PgStore extends BasePgStore { SUM(execution_cost_read_length) AS read_length, SUM(execution_cost_write_count) AS write_count, SUM(execution_cost_write_length) AS write_length, - SUM(tx_total_size) AS tx_total_size, + SUM(COALESCE(tx_total_size, 0)) AS tx_total_size, COUNT(*) AS block_count FROM blocks WHERE block_height >= (SELECT block_height FROM tenure_change_block) @@ -4630,7 +4630,7 @@ export class PgStore extends BasePgStore { execution_cost_read_length, execution_cost_write_count, execution_cost_write_length, - tx_total_size, + COALESCE(tx_total_size, 0) AS tx_total_size, CASE ${tenureCond} END AS tenure_index