2023-08-30 16:34:11 +00:00
|
|
|
create table wdpost_tasks
|
|
|
|
(
|
2023-10-05 15:52:22 +00:00
|
|
|
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,
|
2023-08-30 16:34:11 +00:00
|
|
|
fault_cutoff bigint,
|
|
|
|
wpost_period_deadlines bigint,
|
|
|
|
wpost_proving_period bigint,
|
|
|
|
wpost_challenge_window bigint,
|
|
|
|
wpost_challenge_lookback bigint,
|
|
|
|
fault_declaration_cutoff bigint
|
|
|
|
);
|
|
|
|
|
2023-10-12 17:35:10 +00:00
|
|
|
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
|
|
|
|
);
|
|
|
|
|
|
|
|
|
2023-10-05 15:52:22 +00:00
|
|
|
|