(cherry picked from commit d19526e6c2
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com>
This commit is contained in:
@ -2640,6 +2640,8 @@ fn main() {
|
||||
}
|
||||
|
||||
assert_capitalization(&bank);
|
||||
println!("Inflation: {:?}", bank.inflation());
|
||||
println!("RentCollector: {:?}", bank.rent_collector());
|
||||
println!("Capitalization: {}", Sol(bank.capitalization()));
|
||||
}
|
||||
}
|
||||
|
@ -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)
|
||||
|
Reference in New Issue
Block a user