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:
commit
9bf4aa7546
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user