Skip to content

Commit

Permalink
xdr: Add wrapper to fetch a ledger's close time (stellar#5279)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shaptic authored Apr 16, 2024
1 parent 73233da commit fd10794
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions xdr/ledger_close_meta.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ func (l LedgerCloseMeta) LedgerSequence() uint32 {
return uint32(l.LedgerHeaderHistoryEntry().Header.LedgerSeq)
}

func (l LedgerCloseMeta) LedgerCloseTime() int64 {
return int64(l.LedgerHeaderHistoryEntry().Header.ScpValue.CloseTime)
}

func (l LedgerCloseMeta) LedgerHash() Hash {
return l.LedgerHeaderHistoryEntry().Hash
}
Expand Down

0 comments on commit fd10794

Please sign in to comment.