Skip to content

Commit

Permalink
squashme
Browse files Browse the repository at this point in the history
  • Loading branch information
ClaytonNorthey92 committed Jun 5, 2024
1 parent 553010a commit 8d8dc84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions database/bfgd/scripts/0009.sql
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ SET version = 9;

DROP MATERIALIZED VIEW btc_blocks_can;
-- this materialized view represents the canonical btc_blocks as we know it
CREATE MATERIALIZED VIEW btc_blocks_can AS explain analyze WITH RECURSIVE bb AS (
CREATE MATERIALIZED VIEW btc_blocks_can AS WITH RECURSIVE bb AS (
-- define the tip as the highest block in __highest, look below
-- for definition of this result set
SELECT hash,
Expand Down Expand Up @@ -95,7 +95,7 @@ IF NOT EXISTS(
SELECT *
FROM heights_with_no_children
)

-- then we refresh the materialized view of the canonical chain
THEN REFRESH MATERIALIZED VIEW btc_blocks_can;
END IF;
Expand Down

0 comments on commit 8d8dc84

Please sign in to comment.