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

RHP4 spec changes #219

Merged
merged 18 commits into from
Oct 23, 2024
Merged

RHP4 spec changes #219

merged 18 commits into from
Oct 23, 2024

Conversation

n8maninger
Copy link
Member

@n8maninger n8maninger commented Oct 21, 2024

Fixes #218

Requires #220

rhp/v4/validation.go Outdated Show resolved Hide resolved
@@ -715,6 +715,8 @@ func validateV2FileContracts(ms *MidState, txn types.V2Transaction) error {

validateContract := func(fc types.V2FileContract, renewal bool) error {
switch {
case fc.Filesize > fc.Capacity:
Copy link
Member

Choose a reason for hiding this comment

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

Could it be that we are missing fc.Filesize % SectorSize == 0 checks? Same for capacity?

Copy link
Member

Choose a reason for hiding this comment

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

SectorSize is not a consensus concept, only an RHP one.

Copy link
Member

Choose a reason for hiding this comment

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

@lukechampine what about SegmentSize?

@n8maninger n8maninger merged commit 6769c7c into nate/rhp4 Oct 23, 2024
7 checks passed
@n8maninger n8maninger deleted the nate/rhp4-rpc-changes branch October 23, 2024 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants