Encode a tu64 (or tu32 etc) value
(i: int)
| 615 | |
| 616 | |
| 617 | def 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 | |
| 625 | def serialize_payload_tlv(amount_msat, delay, next_channel, blockheight): |
no outgoing calls