Expose genesis block time via rpc (#19267)

* Expose genesis_creation_time from Bank

* Backfill genesis_creation_time for block/block-time requests of slot 0
This commit is contained in:
Tyera Eulberg
2021-08-17 16:29:34 -06:00
committed by GitHub
parent c50b01cb60
commit c167211611
2 changed files with 24 additions and 8 deletions

View File

@ -1621,6 +1621,10 @@ impl Bank {
&self.collector_id
}
pub fn genesis_creation_time(&self) -> UnixTimestamp {
self.genesis_creation_time
}
pub fn slot(&self) -> Slot {
self.slot
}