Skip to content

Commit 8c001c0

Browse files
committed
fix unsigned packing
1 parent 2d9bc72 commit 8c001c0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

bolt11/models/routehint.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ def data(self) -> Bits:
4141
for route in self.routes:
4242
route_hints.append(
4343
BitArray(hex=route.public_key)
44-
+ pack("intbe:64", scid_to_int(route.short_channel_id))
45-
+ pack("intbe:32", route.base_fee)
46-
+ pack("intbe:32", route.ppm_fee)
47-
+ pack("intbe:16", route.cltv_expiry_delta)
44+
+ pack("uintbe:64", scid_to_int(route.short_channel_id))
45+
+ pack("uintbe:32", route.base_fee)
46+
+ pack("uintbe:32", route.ppm_fee)
47+
+ pack("uintbe:16", route.cltv_expiry_delta)
4848
)
4949

5050
return route_hints

0 commit comments

Comments
 (0)