From 033cfa8f4743c1f90a617755a1f2fdb24388ac68 Mon Sep 17 00:00:00 2001 From: Mike Greenberg Date: Wed, 15 Jul 2020 23:53:21 -0400 Subject: [PATCH] fix(chainwatch): Correct index name on state_height view --- cmd/lotus-chainwatch/syncer/sync.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/lotus-chainwatch/syncer/sync.go b/cmd/lotus-chainwatch/syncer/sync.go index 83577ebf5..4753c4979 100644 --- a/cmd/lotus-chainwatch/syncer/sync.go +++ b/cmd/lotus-chainwatch/syncer/sync.go @@ -120,10 +120,10 @@ create unique index if not exists block_cid_uindex create materialized view if not exists state_heights as select distinct height, parentstateroot from blocks; -create index if not exists state_heights_index +create index if not exists state_heights_height_index on state_heights (height); -create index if not exists state_heights_height_index +create index if not exists state_heights_parentstateroot_index on state_heights (parentstateroot); `); err != nil { return err