35 lines
982 B
SQL
35 lines
982 B
SQL
create table wdpost_tasks
|
|
(
|
|
task_id int not null
|
|
constraint wdpost_tasks_pkey
|
|
primary key,
|
|
tskey bytea not null,
|
|
current_epoch bigint not null,
|
|
period_start bigint not null,
|
|
index bigint not null
|
|
constraint wdpost_tasks_index_key
|
|
unique,
|
|
open bigint not null,
|
|
close bigint not null,
|
|
challenge bigint not null,
|
|
fault_cutoff bigint,
|
|
wpost_period_deadlines bigint,
|
|
wpost_proving_period bigint,
|
|
wpost_challenge_window bigint,
|
|
wpost_challenge_lookback bigint,
|
|
fault_declaration_cutoff bigint
|
|
);
|
|
|
|
create table wdpost_proofs
|
|
(
|
|
deadline bigint not null,
|
|
partitions bytea not null,
|
|
proof_type bigint,
|
|
proof_bytes bytea,
|
|
chain_commit_epoch bigint,
|
|
chain_commit_rand bytea
|
|
);
|
|
|
|
|
|
|