Skip to content

core/state/snapshot: clarify comment#23305

Merged
fjl merged 5 commits intoethereum:masterfrom
tylerchambers:fix-23298
Aug 10, 2021
Merged

core/state/snapshot: clarify comment#23305
fjl merged 5 commits intoethereum:masterfrom
tylerchambers:fix-23298

Conversation

@tylerchambers
Copy link
Copy Markdown
Contributor

Small fix to clarify what is deleted.

Fixes: #23298

Comment thread core/state/snapshot/snapshot.go Outdated
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Member

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

@holiman
Copy link
Copy Markdown
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
Copy Markdown
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