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

Simplify RHP4 DevEx #233

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Simplify RHP4 DevEx #233

wants to merge 2 commits into from

Conversation

n8maninger
Copy link
Member

@n8maninger n8maninger commented Nov 15, 2024

This introduces two changes to simplify client DX. These settings felt very similar to the batch size settings in RHP2 -- the host could technically change them, but actual renter code just assumed the default 17.83 MB was valid. This enforces a safe default assumption and reduces potential complexity around hosts with differing settings.

@@ -98,9 +107,9 @@ func (hp HostPrices) RPCReadSectorCost(length uint64) Usage {

// RPCWriteSectorCost returns the cost of executing the WriteSector RPC with the
// given sector length and duration.
func (hp HostPrices) RPCWriteSectorCost(sectorLength uint64, duration uint64) Usage {
func (hp HostPrices) RPCWriteSectorCost(sectorLength uint64) Usage {
Copy link
Member

Choose a reason for hiding this comment

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

nit update docstring to reflect change

Copy link
Member

@ChrisSchinnerl ChrisSchinnerl left a comment

Choose a reason for hiding this comment

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

Good stuff. That will make things less awkward.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

3 participants