feat: getInflation() endpoint (#5681)

This commit is contained in:
Sunny Gleason
2019-08-27 18:17:03 -04:00
committed by GitHub
parent 8b9c3a2561
commit 34ab25a88b
4 changed files with 71 additions and 0 deletions

View File

@ -1326,6 +1326,11 @@ impl Bank {
self.tick_height.load(Ordering::Relaxed) as u64
}
/// Return the inflation parameters of the Bank
pub fn inflation(&self) -> Inflation {
self.inflation
}
/// Return the total capititalization of the Bank
pub fn capitalization(&self) -> u64 {
// capitalization is using an AtomicUSize because AtomicU64 is not yet a stable API.