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

storage: split window PoST submission into multiple messages #3689

Merged
merged 2 commits into from
Sep 15, 2020

Conversation

dirkmc
Copy link
Contributor

@dirkmc dirkmc commented Sep 9, 2020

Fixes #3332

}

var sinfos []proof.SectorInfo
Copy link
Contributor Author

@dirkmc dirkmc Sep 9, 2020

Choose a reason for hiding this comment

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

The logic here should be the same, the indentation just makes it hard to compare (use diff settings to hide whitespace)

@dirkmc
Copy link
Contributor Author

dirkmc commented Sep 9, 2020

Note: TestAPIRPC/testMiningReal failed in CI but works for me locally

Copy link
Member

@Stebalien Stebalien left a comment

Choose a reason for hiding this comment

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

Everything LGTM except for the moved randomness.

storage/wdpost_run.go Outdated Show resolved Hide resolved
storage/wdpost_run.go Outdated Show resolved Hide resolved
storage/wdpost_run.go Outdated Show resolved Hide resolved
@dirkmc dirkmc force-pushed the feat/batch-window-PoST branch 4 times, most recently from 5df2939 to 85ee7ff Compare September 11, 2020 11:17
@dirkmc
Copy link
Contributor Author

dirkmc commented Sep 11, 2020

@Stebalien sorry I had to rebase again after #3710 was merged, please take one more look

Copy link
Member

@Stebalien Stebalien left a comment

Choose a reason for hiding this comment

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

Nice!

for batchIdx, batch := range partitionBatches {
batchPartitionStartIdx := 0
for _, batch := range partitionBatches[:batchIdx] {
batchPartitionStartIdx += len(batch)
Copy link
Member

Choose a reason for hiding this comment

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

Why not just keep a running count?

@magik6k magik6k merged commit cf82483 into master Sep 15, 2020
@magik6k magik6k deleted the feat/batch-window-PoST branch September 15, 2020 08:17
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.

Split PoSt submission into multiple messages.
3 participants