mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-29 08:21:27 +00:00
follow up 0b3a882e7d57c8a42be48c491a46dc814eab6acb
This commit is contained in:
parent
a6ef0c4f0c
commit
a2f166d20d
1 changed files with 2 additions and 1 deletions
|
@ -42,7 +42,8 @@ from collections import namedtuple, defaultdict
|
|||
|
||||
def channel_id_from_funding_tx(funding_txid, funding_index):
|
||||
funding_txid_bytes = bytes.fromhex(funding_txid)[::-1]
|
||||
return int.from_bytes(funding_txid_bytes, 'big') ^ funding_index, funding_txid_bytes
|
||||
i = int.from_bytes(funding_txid_bytes, 'big') ^ funding_index
|
||||
return i.to_bytes(32, 'big'), funding_txid_bytes
|
||||
|
||||
class LightningError(Exception):
|
||||
pass
|
||||
|
|
Loading…
Add table
Reference in a new issue