mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 23:24:27 +01:00
misc: Update short_channel_id representation to use 'x' separators
Reported-by: Alex Bosworth <@alexbosworth> Signed-off-by: Christian Decker <decker.christian@gmail.com>
This commit is contained in:
committed by
Rusty Russell
parent
d3ac2503d6
commit
659a26ea5a
@@ -525,7 +525,7 @@ class LightningNode(object):
|
||||
for out in decoded['vout']:
|
||||
if out['scriptPubKey']['type'] == 'witness_v0_scripthash':
|
||||
if out['value'] == Decimal(amount) / 10**8:
|
||||
scid = "{}:1:{}".format(self.bitcoin.rpc.getblockcount(), out['n'])
|
||||
scid = "{}x1x{}".format(self.bitcoin.rpc.getblockcount(), out['n'])
|
||||
break
|
||||
|
||||
if not scid:
|
||||
@@ -613,7 +613,7 @@ class LightningNode(object):
|
||||
'msatoshi': amt,
|
||||
'id': dst.info['id'],
|
||||
'delay': 5,
|
||||
'channel': '1:1:1'
|
||||
'channel': '1x1x1'
|
||||
}
|
||||
|
||||
def wait_pay():
|
||||
|
||||
Reference in New Issue
Block a user