chainwatch: add stateroot index on miner_heads
This commit is contained in:
parent
e7f6554c68
commit
9b98ef5de4
@ -235,6 +235,9 @@ create table if not exists miner_heads
|
|||||||
primary key (head, addr)
|
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)
|
create or replace function miner_tips(epoch bigint)
|
||||||
returns table (head text,
|
returns table (head text,
|
||||||
addr text,
|
addr text,
|
||||||
|
Loading…
Reference in New Issue
Block a user