This repository has been archived by the owner on Jan 13, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
runtime: add rent debit charges to block metadata #17504
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
t-nelson
force-pushed
the
rent-debit-block-metas
branch
from
May 26, 2021 05:28
ed0d3e5
to
c5faff8
Compare
CriesofCarrots
previously approved these changes
May 26, 2021
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm if CI is happy
Added some tests for |
mergify
bot
dismissed
CriesofCarrots’s stale review
May 26, 2021 05:42
Pull request has been modified.
t-nelson
added
the
automerge
Merge this Pull Request automatically once CI passes
label
May 26, 2021
ryoqun
reviewed
May 26, 2021
// Store all of them unconditionally to purge old AppendVec, | ||
// even if collected rent is 0 (= not updated). | ||
// Also, there's another subtle side-effect from this: this | ||
// ensures we verify the whole on-chain state (= all accounts) | ||
// via the account delta hash slowly once per an epoch. | ||
self.store_account(&pubkey, &account); | ||
rent_debits.push(&pubkey, rent, account.lamports()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hehe, nice 👀
mergify
bot
removed
the
automerge
Merge this Pull Request automatically once CI passes
label
May 26, 2021
automerge label removed due to a CI failure |
mvines
previously approved these changes
May 26, 2021
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm too!
t-nelson
force-pushed
the
rent-debit-block-metas
branch
from
May 26, 2021 06:20
bb844e4
to
ceb6f42
Compare
t-nelson
added
the
automerge
Merge this Pull Request automatically once CI passes
label
May 26, 2021
mergify
bot
removed
the
automerge
Merge this Pull Request automatically once CI passes
label
May 26, 2021
automerge label removed due to a CI failure |
t-nelson
added
the
automerge
Merge this Pull Request automatically once CI passes
label
May 26, 2021
Closed
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem
It is difficult to resolve rent debits from block metadata alone
Summary of Changes
Add explicit rent debit entries in block metadata