Skip to content
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

refactor replica updates to use the batched activation and claim method #1307

Conversation

alexytsu
Copy link
Contributor

@alexytsu alexytsu commented Jun 1, 2023

@alexytsu alexytsu requested a review from anorth June 1, 2023 07:01
@alexytsu alexytsu marked this pull request as ready for review June 1, 2023 07:01
Copy link
Member

@anorth anorth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!


// Errors past this point cause the prove_replica_updates call to fail (no more skipping sectors)
let deal_data = request_deal_data(rt, &sectors_deals)?;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've opened #1308 to follow up on removing this (after the other optimisations you are pursuing).

@@ -1080,6 +1080,8 @@ fn deal_included_in_multiple_sectors_failure_test<BS: Blockstore>(v: &dyn VM<BS>
// make some unverified deals
let deal_ids = create_deals_frac(2, v, worker, worker, maddr, 2, false, 180 * EPOCHS_IN_DAY);

println!("deals {:?}", deal_ids);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove before merging.

@alexytsu alexytsu force-pushed the alexytsu/1306-replica-update-batched-activations branch from b277264 to affa578 Compare June 5, 2023 00:19
@alexytsu alexytsu merged commit 4adb73c into alexytsu/1278-batch-allocation-claim Jun 5, 2023
@alexytsu alexytsu deleted the alexytsu/1306-replica-update-batched-activations branch June 5, 2023 00:19
alexytsu added a commit that referenced this pull request Jun 5, 2023
* miner batch claim of datacap allocations in confirm_sector_proofs_valid_internal

* fix expectations

* move test util into test code

* verifreg nits

* factor batch activate deals and claim allocations for reuse in replica_updates

* update docs

* fix regression

* PR review

* remove superfluous BatchReturn info

* refactor replica updates to use the batched activation and claim method (#1307)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants