-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Reduce cap by rent's leftover as temporary measure #12111
Conversation
Codecov Report
@@ Coverage Diff @@
## master #12111 +/- ##
=======================================
Coverage 82.0% 82.0%
=======================================
Files 337 337
Lines 79220 79223 +3
=======================================
+ Hits 65012 65025 +13
+ Misses 14208 14198 -10 |
|
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.
thanks!
runtime/src/bank.rs
Outdated
self.distribute_rent_to_validators(&self.vote_accounts(), rent_to_be_distributed); | ||
let leftover = | ||
self.distribute_rent_to_validators(&self.vote_accounts(), rent_to_be_distributed); | ||
self.capitalization.fetch_sub(leftover, Ordering::Relaxed); |
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.
Just to confirm, this is ok because capitalization
is not a part of the bank hash right?
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.
Just to confirm, this is ok because
capitalization
is not a part of the bank hash right?
Exactly. :)
f6a123f
to
b00f1a5
Compare
* Reduce cap by rent's leftover as temporary measure * Reset testnet cap. on start and more logs (cherry picked from commit 5b2442d)
* Reduce cap by rent's leftover as temporary measure * Reset testnet cap. on start and more logs (cherry picked from commit 5b2442d) Co-authored-by: Ryo Onodera <[email protected]>
Problem
testnet's cap is busted now.
Summary of Changes
This is temporary fix, which can go without gating.
The underlying bug is now identified and the bug even resides in mainnet-beta/v1.2......
Context
found via capitalization work and blocking #11927