lpseal: write precommit message to message_waits
This commit is contained in:
parent
2c7041b167
commit
2f45646a92
@ -41,8 +41,6 @@ create table sectors_sdr_pipeline (
|
|||||||
-- precommit message wait
|
-- precommit message wait
|
||||||
seed_epoch bigint,
|
seed_epoch bigint,
|
||||||
precommit_msg_tsk bytea,
|
precommit_msg_tsk bytea,
|
||||||
|
|
||||||
task_id_precommit_msg_wait bigint,
|
|
||||||
after_precommit_msg_success bool not null default false,
|
after_precommit_msg_success bool not null default false,
|
||||||
|
|
||||||
-- seed
|
-- seed
|
||||||
|
@ -120,6 +120,11 @@ func (s *SubmitPrecommitTask) Do(taskID harmonytask.TaskID, stillOwned func() bo
|
|||||||
return false, xerrors.Errorf("updating precommit_msg_cid: %w", err)
|
return false, xerrors.Errorf("updating precommit_msg_cid: %w", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_, err = s.db.Exec(ctx, `INSERT INTO message_waits (signed_message_cid) VALUES ($1)`, mcid)
|
||||||
|
if err != nil {
|
||||||
|
return false, xerrors.Errorf("inserting into message_waits: %w", err)
|
||||||
|
}
|
||||||
|
|
||||||
return true, nil
|
return true, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user