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 Fixes #666

Merged
merged 1 commit into from
Oct 12, 2023
Merged

Pruning Fixes #666

merged 1 commit into from
Oct 12, 2023

Conversation

peterjan
Copy link
Member

@peterjan peterjan commented Oct 12, 2023

We are returning deleted and remaining as num roots instead of num bytes. It should be number of bytes to be consistent with ContractPrunableData which returns the amount of prunable data in bytes. We're also recording spending in defer which I think is causing faulty updates of the contract's revision number/filesize in case an error occurs. Since the recorder has batching there's no reason not to record the spend in every iteration.

This should get rid of the following error we were seeing in the integrity checks:

  "message": "integrity check failed, err: failed to prune the dataset; failed to prune contract; unexpected revision number, 1387!=1388\n",

@peterjan peterjan self-assigned this Oct 12, 2023
@peterjan peterjan marked this pull request as ready for review October 12, 2023 14:23
@ChrisSchinnerl ChrisSchinnerl merged commit bc9ea4e into master Oct 12, 2023
6 checks passed
@ChrisSchinnerl ChrisSchinnerl deleted the pj/pruning-fixes branch October 12, 2023 14:26
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