mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-24 01:24:26 +01:00
pytest: Added dynamic RPC call dispatch
Instead of having to define every single method we can now just call any method, it'll fail upstream if it does not exist.
This commit is contained in:
committed by
Rusty Russell
parent
6a072c4c6e
commit
4e0be7a48f
@@ -133,7 +133,7 @@ class LightningDTests(BaseLightningDTests):
|
||||
|
||||
assert ret['id'] == l2.info['id']
|
||||
|
||||
addr = l1.rpc.newaddr()
|
||||
addr = l1.rpc.newaddr()['address']
|
||||
|
||||
txid = l1.bitcoin.rpc.sendtoaddress(addr, 0.02)
|
||||
tx = l1.bitcoin.rpc.getrawtransaction(txid)
|
||||
|
||||
Reference in New Issue
Block a user