feat!: ni-porep PoC in lotus-miner pipeline #12398
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is a draft PoC to demonstrate NI-PoRep using the existing lotus-miner pipeline. It's far from complete, but it works with mock proofs under the very limited conditions of the integration test that exercises this. Someone else would need to take this further and do all of the additional pieces required.
This functionality is for using lotus-miner to seal NI-PoRep sectors itself, not the "buy sector and onboard" workflow. So for this to be worthwhile, the economics of the more expensive porep (8x?) would have to justify the lack of wait time to onboard and the ability to select your sector proving deadlines. Does the maths of that work out for anyone?
Some thoughts from doing this about what else would be needed here:
PledgeSector
API which is labelledTemp api for testing
(although it's wired up through the CLI, so maybe that's wrong), the additional arg I've added isn't exactly ideal. There needs to be some coherent mechanism to queue NI-PoRep sectors up to the pipeline.