Skip to content

Commit 857fdbc

Browse files
committed
fix missing byte order in ln_init
1 parent 71381dd commit 857fdbc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/scenarios/ln_init.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def funded_lnnodes():
8888
assert chan_pt[:64] not in self.nodes[0].getrawmempool()
8989
height = self.nodes[0].getblockcount()
9090
self.log.info(f" confirmed in block {height}")
91-
self.log.info(f" channel_id should be: {int.from_bytes(height.to_bytes(3) + (1).to_bytes(3) + (0).to_bytes(2))}")
91+
self.log.info(f" channel_id should be: {int.from_bytes(height.to_bytes(3, 'big') + (1).to_bytes(3, 'big') + (0).to_bytes(2, 'big'))}")
9292

9393
# Ensure all channel opens are sufficiently confirmed
9494
self.generatetoaddress(self.nodes[0], 10, miner_addr)

0 commit comments

Comments
 (0)