Dump rent_collector/inflation with ledger-tool cap (#17069) (#17081)

(cherry picked from commit d19526e6c2)

Co-authored-by: Ryo Onodera <ryoqun@gmail.com>
This commit is contained in:
mergify[bot]
2021-05-06 11:48:21 +00:00
committed by GitHub
parent 5c9495f955
commit 5d088c7d06
2 changed files with 6 additions and 0 deletions

View File

@@ -4444,6 +4444,10 @@ impl Bank {
*self.inflation.read().unwrap()
}
pub fn rent_collector(&self) -> RentCollector {
self.rent_collector.clone()
}
/// Return the total capitalization of the Bank
pub fn capitalization(&self) -> u64 {
self.capitalization.load(Relaxed)