Skip to content

Conversation

@n8mgr
Copy link
Member

@n8mgr n8mgr commented Oct 21, 2024

Fixes #218

Requires #220


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?

@n8mgr n8mgr merged commit 6769c7c into nate/rhp4 Oct 23, 2024
@n8mgr n8mgr 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.

5 participants