Merge pull request #1321 from filecoin-project/feat/chainwatch-miner-heads-stateroot-index

chainwatch: add stateroot index on miner_heads
This commit is contained in:
Łukasz Magiera
2020-03-04 05:55:46 +01:00
committed by GitHub
+3
View File
@@ -235,6 +235,9 @@ create table if not exists miner_heads
primary key (head, addr)
);
create index if not exists miner_heads_stateroot_index
on miner_heads (stateroot);
create or replace function miner_tips(epoch bigint)
returns table (head text,
addr text,