chainwatch: add stateroot index on miner_heads

This commit is contained in:
Travis Person 2020-03-04 04:50:53 +00:00
parent e7f6554c68
commit 9b98ef5de4

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,