MCPcopy Create free account
hub / github.com/ElementsProject/lightning / tu64_encode

Function tu64_encode

tests/utils.py:617–622  ·  view source on GitHub ↗

Encode a tu64 (or tu32 etc) value

(i: int)

Source from the content-addressed store, hash-verified

615
616
617def tu64_encode(i: int):
618 """Encode a tu64 (or tu32 etc) value"""
619 ret = struct.pack("!Q", i)
620 while ret.startswith(b'\0'):
621 ret = ret[1:]
622 return ret
623
624
625def serialize_payload_tlv(amount_msat, delay, next_channel, blockheight):

Calls

no outgoing calls