MCPcopy Create free account
hub / github.com/akash-network/node / decodeQueueTime

Function decodeQueueTime

x/verification/keeper/queue.go:56–61  ·  view source on GitHub ↗
(key []byte)

Source from the content-addressed store, hash-verified

54}
55
56func decodeQueueTime(key []byte) (time.Time, error) {
57 if len(key) < 8 {
58 return time.Time{}, errorsmod.Wrap(moduletypes.ErrInvalidReason, "malformed verification queue key")
59 }
60 return time.Unix(0, int64(binary.BigEndian.Uint64(key[:8]))).UTC(), nil
61}
62
63func decodeAttestationExpiryQueueKey(key []byte) (sdk.AccAddress, sdk.AccAddress, error) {
64 if len(key) < 10 || (len(key)-8)%2 != 0 {

Callers 1

processDueQueueMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected