mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +01:00
addfunds: remove.
We now detect funds, so this is just confusing. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -326,11 +326,10 @@ class LightningNode(object):
|
||||
def openchannel(self, remote_node, capacity):
|
||||
addr = self.rpc.newaddr()['address']
|
||||
txid = self.bitcoin.rpc.sendtoaddress(addr, capacity / 10**6)
|
||||
tx = self.bitcoin.rpc.getrawtransaction(txid)
|
||||
self.rpc.addfunds(tx)
|
||||
self.bitcoin.generate_block(1)
|
||||
self.daemon.wait_for_log('Owning output .* txid {}'.format(txid))
|
||||
self.rpc.fundchannel(remote_node.info['id'], capacity)
|
||||
self.daemon.wait_for_log('sendrawtx exit 0, gave')
|
||||
time.sleep(1)
|
||||
self.bitcoin.generate_block(6)
|
||||
self.daemon.wait_for_log('-> CHANNELD_NORMAL|STATE_NORMAL')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user