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

Pruning Low Payout #734

Merged
merged 2 commits into from
Nov 21, 2023
Merged

Pruning Low Payout #734

merged 2 commits into from
Nov 21, 2023

Conversation

peterjan
Copy link
Member

@peterjan peterjan commented Nov 14, 2023

Ran into some pruning errors on the integrity node. This PR essentially overpays on pruning related RPCs for hosts below 1.6.0. After deploying the errors went away.

-       "error": "failed to prune the dataset; failed to prune contract; couldn't read sector roots response: ReadResponse: [expected at least 1359409638185693184 to be exchanged, but 1339465737589041728 was exchanged: ; communication error: rejected for high paying renter valid output]\n",

@peterjan peterjan self-assigned this Nov 14, 2023
@peterjan peterjan marked this pull request as ready for review November 14, 2023 10:31
proofSize = minMessageSize
// calculate the cost
var remainingDuration uint64 // not needed for deletions
rpcCost, err := settings.RPCWriteCost(actions, numSectors, remainingDuration, true)
Copy link
Member

Choose a reason for hiding this comment

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

Is it not enough to switch to RPCWriteCost. Isn't this the same math said uses for computing the cost?

Copy link
Member Author

Choose a reason for hiding this comment

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

Unfortunately it's not 1-1. For example siad has a min len check that's not in coreproofSize < modules.RPCMinLen. On our integrity node I logged got vs want cost and found the diff was one sector in dl bandwidth pricing...

Copy link
Member Author

Choose a reason for hiding this comment

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

After getting rid of siad hosts we can obviously switch to RPCWriteCost

@ChrisSchinnerl ChrisSchinnerl merged commit 4845a70 into master Nov 21, 2023
6 checks passed
@ChrisSchinnerl ChrisSchinnerl deleted the pj/pruning-low-payout branch November 21, 2023 12:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

2 participants