fixed reader.py missing byteorder

This commit is contained in:
cheetah
2025-08-19 11:27:28 +02:00
parent 565597e437
commit 5ed4e07c86

View File

@@ -51,8 +51,8 @@ class MessageReader:
c["public_key"] = data[1:33].hex() c["public_key"] = data[1:33].hex()
c["type"] = data[33] c["type"] = data[33]
c["flags"] = data[34] c["flags"] = data[34]
c["out_path_len"] = int.from_bytes(data[35:36], signed=True) c["out_path_len"] = int.from_bytes(data[35:36], signed=True, byteorder="little")
plen = int.from_bytes(data[35:36], signed=True) plen = int.from_bytes(data[35:36], signed=True, byteorder="little")
if plen == -1: if plen == -1:
plen = 0 plen = 0
c["out_path"] = data[36 : 36 + plen].hex() c["out_path"] = data[36 : 36 + plen].hex()