-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
batch publish deal messages #5309
Conversation
c748d1b
to
36cadb4
Compare
d834229
to
b4dd2ac
Compare
api/test/deals.go
Outdated
|
||
ctx := context.Background() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Most of the changes in this file are just refactoring some common code into functions
PublishMsg: PublishMsgConfig{ | ||
PublishPeriod: Duration(time.Hour), | ||
MaxDealsPerMsg: 8, | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are placeholder defaults for PublishPeriod
and MaxDealsPerMsg
, open to suggestions for these values
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the MaxDealsPerMsg supported by the network ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i have seen up to 30 on the chain already -but this should be proper documented with the max values
b4dd2ac
to
d65467d
Compare
ce6320d
to
e38ca0c
Compare
@dirkmc how deal batching will be exposed to miners via lotus ? specific command line or automatically ? |
It will be automatic, with two config values:
|
b78e389
to
1dbef15
Compare
1dbef15
to
09c463b
Compare
09c463b
to
c48a069
Compare
c48a069
to
adac340
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a couple of nits, generally looks good.
Would also be great to have commands to see pending deals / force send a publish message
Good idea, I created a ticket: #5491 |
Seems like if I’m sending a message for deals 1,2,3,4,5, with start epoch increasingly and when the time of sending the message has passed the 3’s start epoch, the message will fail for all deals. will one be able to republish the valid deals, say for deals 4,5? assuming we add some checks to run the message locally first before sending it out, what will happen if by the time of the message landed on chain, one of the deal expired? @dirkmc @magik6k |
#5505 implements a fix for the case where the deal proposal start epoch has already elapsed by the time the publish message is about to be sent. The fix is that we will filter this deal out of the publish message. I'm not sure if we can do much in lotus about the case where the publish message takes a few epochs to land on chain, and in the mean time the start epoch of one of the deals expires. I believe we would need a change in specs-actors to account for this case:
|
…ed-deals Dont publish expired deals
…texts Use correct contexts in storageadapter
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Also did some manual testing on my mining setup, and it seems to work well
can you give a quick overview on the config params until they are properly documented? |
@PatrickDeuse I just opened a PR against filecoin docs here: filecoin-project/filecoin-docs#658 |
Fixes #4878
TODO: