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

core/state/snapshot: clarify comment #23305

Merged
merged 5 commits into from
Aug 10, 2021
Merged

core/state/snapshot: clarify comment #23305

merged 5 commits into from
Aug 10, 2021

Conversation

tylerchambers
Copy link
Contributor

Small fix to clarify what is deleted.

Fixes: #23298

// and will be reconstructed from scratch based on the tries in the key-value
// store, on a background thread. If the memory layers from the journal is not
// continuous with disk layer or the journal is missing, all diffs will be discarded
// iff it's in "recovery" mode, otherwise rebuild is mandatory.
// if it's in "recovery" mode, otherwise rebuild is mandatory.
Copy link
Contributor

Choose a reason for hiding this comment

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

iff usually means if and only if. Not sure if that's the case here, but probably.

Funny, because it's the second time in a short span of time that someone has tried to fix this word :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

you learn something new every day. thanks!
iff seems right. amended.

@rjl493456442
Copy link
Member

The comment is outdated. The stale/wrong snapshot won't be deleted but be reused during the rebuilding.

@holiman
Copy link
Contributor

holiman commented Aug 3, 2021

The stale/wrong snapshot won't be deleted but be reused during the rebuilding.

So.. what should the comment say, exactly?

@fjl fjl changed the title clarify comment, fix spelling core/state/snapshot: clarify comment Aug 10, 2021
@fjl fjl merged commit 6694831 into ethereum:master Aug 10, 2021
Copy link
Member

@karalabe karalabe left a comment

Choose a reason for hiding this comment

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

👍

@fjl fjl added this to the 1.10.7 milestone Aug 10, 2021
atif-konasl pushed a commit to frozeman/pandora-execution-engine that referenced this pull request Oct 15, 2021
…23305)


Co-authored-by: Tyler Chambers <me@tylerchambers.net>
Co-authored-by: Felix Lange <fjl@twurst.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Comment unclear about what is deleted
5 participants