MCPcopy Create free account
hub / github.com/ChainSafe/Delorean-Protocol / to_timestamp

Function to_timestamp

fendermint/app/src/tmconv.rs:323–329  ·  view source on GitHub ↗
(time: tendermint::time::Time)

Source from the content-addressed store, hash-verified

321}
322
323pub fn to_timestamp(time: tendermint::time::Time) -> Timestamp {
324 Timestamp(
325 time.unix_timestamp()
326 .try_into()
327 .expect("negative timestamp"),
328 )
329}
330
331pub fn to_code(exit_code: ExitCode) -> Code {
332 if exit_code.is_success() {

Callers 1

finalize_blockMethod · 0.85

Calls 2

try_intoMethod · 0.80
TimestampClass · 0.50

Tested by

no test coverage detected