feat: getInflation() endpoint (#5681) (#5692)

(cherry picked from commit 34ab25a88b)
This commit is contained in:
mergify[bot]
2019-08-27 15:56:46 -07:00
committed by Michael Vines
parent ad37dfb0a7
commit d052de847e
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.