diff --git a/cmd/lotus-provider/run.go b/cmd/lotus-provider/run.go index c2508e032..f8325578f 100644 --- a/cmd/lotus-provider/run.go +++ b/cmd/lotus-provider/run.go @@ -4,7 +4,6 @@ import ( "context" "encoding/base64" "fmt" - "github.com/filecoin-project/lotus/provider/lpmessage" "net" "net/http" "os" @@ -43,6 +42,7 @@ import ( "github.com/filecoin-project/lotus/node/modules/dtypes" "github.com/filecoin-project/lotus/node/repo" "github.com/filecoin-project/lotus/provider" + "github.com/filecoin-project/lotus/provider/lpmessage" "github.com/filecoin-project/lotus/provider/lpwinning" "github.com/filecoin-project/lotus/storage/ctladdr" "github.com/filecoin-project/lotus/storage/paths" diff --git a/lib/harmony/harmonydb/sql/20231103.sql b/lib/harmony/harmonydb/sql/20231103.sql index 733b9b3c8..e70cf3738 100644 --- a/lib/harmony/harmonydb/sql/20231103.sql +++ b/lib/harmony/harmonydb/sql/20231103.sql @@ -22,12 +22,20 @@ create table message_sends ); comment on column message_sends.from_key is 'text f[1/3/4]... address'; -comment on column message_sends.nonce is 'assigned message nonce'; comment on column message_sends.to_addr is 'text f[0/1/2/3/4]... address'; -comment on column message_sends.signed_data is 'signed message data'; -comment on column message_sends.signed_cid is 'signed message cid'; comment on column message_sends.send_reason is 'optional description of send reason'; -comment on column message_sends.send_success is 'whether this message was broadcasted to the network already'; +comment on column message_sends.send_task_id is 'harmony task id of the send task'; + +comment on column message_sends.unsigned_data is 'unsigned message data'; +comment on column message_sends.unsigned_cid is 'unsigned message cid'; + +comment on column message_sends.nonce is 'assigned message nonce, set while the send task is executing'; +comment on column message_sends.signed_data is 'signed message data, set while the send task is executing'; +comment on column message_sends.signed_cid is 'signed message cid, set while the send task is executing'; + +comment on column message_sends.send_time is 'time when the send task was executed, set after pushing the message to the network'; +comment on column message_sends.send_success is 'whether this message was broadcasted to the network already, null if not yet attempted, true if successful, false if failed'; +comment on column message_sends.send_error is 'error message if send_success is false'; create unique index message_sends_success_index on message_sends (from_key, nonce)