mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-24 01:24:26 +01:00
txprepare: return psbt serialized version of tx as well
Changelog-Added: JSON-API: `txprepare` returns a psbt version of the created transaction
This commit is contained in:
committed by
Rusty Russell
parent
bf4cac7fb8
commit
1fb9a078b6
@@ -302,6 +302,7 @@ def test_txprepare(node_factory, bitcoind, chainparams):
|
||||
wait_for(lambda: len(l1.rpc.listfunds()['outputs']) == 10)
|
||||
|
||||
prep = l1.rpc.txprepare(outputs=[{addr: Millisatoshi(amount * 3 * 1000)}])
|
||||
assert prep['psbt']
|
||||
decode = bitcoind.rpc.decoderawtransaction(prep['unsigned_tx'])
|
||||
assert decode['txid'] == prep['txid']
|
||||
# 4 inputs, 2 outputs (3 if we have a fee output).
|
||||
|
||||
Reference in New Issue
Block a user