Add v0 REST APIs for circulating and total supply (#10102) (#10159)

automerge
This commit is contained in:
mergify[bot]
2020-05-20 22:14:59 -07:00
committed by GitHub
parent 2333468350
commit 4334fef955
4 changed files with 101 additions and 25 deletions

View File

@@ -222,6 +222,10 @@ impl BankForks {
self.root
}
pub fn root_bank(&self) -> &Arc<Bank> {
self.banks.get(&self.root()).expect("Root bank must exist")
}
pub fn purge_old_snapshots(&self) {
// Remove outdated snapshots
let config = self.snapshot_config.as_ref().unwrap();