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:
Christian Decker
2019-01-10 22:42:18 +01:00
committed by Rusty Russell
parent d3ac2503d6
commit 659a26ea5a
8 changed files with 37 additions and 27 deletions

View File

@@ -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():