-
Notifications
You must be signed in to change notification settings - Fork 121
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
tapgarden: batch restart fixes #941
Conversation
cb117ac
to
3159ec9
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.
Thanks for the fix, LGTM 🎉
I ran this pull request as part of litd. I might need some help verifying that I really did run this code, though. First I checked out this branch on the I'm on commit Then I modified the Then I ran Then I compiled litd with I then ran litd with Unfortunately, litd crashed:
|
So the issue seems to be that you have a batch on disk that is in state On restart, we try to serialize that packet without having a non-nil check first. This could happen if you crashed while minting with v0.3.3, as there the batch was frozen before funding and sealing. This could also happen on On restart, if the batch has state The open question IMO is what to do with a batch in state |
5aceb0c
to
76ec8ac
Compare
Awesome, I'm running this patch, so far no issues! |
But running
|
76ec8ac
to
3b3b486
Compare
I updated this branch, can you try it out again? I think marhsalling for batches made before #866, was broken by #866. Should be fixed now. I had added some assumptions in the marshalling code that all seedlings would have a script key set, which wouldn't be true for batches already stored in the DB before that PR. Also added an extra check at the beginning of the caretaker so we exit gracefully in case on restart resume issues. |
Yes I'm able to run |
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 🐴
} | ||
|
||
if b.cfg.Batch.GenesisPacket == nil || | ||
b.cfg.Batch.GenesisPacket.Pkt == nil { |
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.
👍
Should fix #940.
Likely caused by changes in #866.