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:
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user