Skip to content

Commit

Permalink
txprepare: revert 1fb9a07 (psbt field)
Browse files Browse the repository at this point in the history
We're actually going to deprecate this, so don't add new features!

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Changelog-Added: ***REMOVE*** JSON-API: `txprepare` returns a psbt version of the created transaction
  • Loading branch information
rustyrussell committed Jul 13, 2020
1 parent e7c24a2 commit a732f7c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion tests/test_wallet.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,6 @@ 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).
Expand Down
1 change: 0 additions & 1 deletion wallet/walletrpc.c
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,6 @@ static struct command_result *json_txprepare(struct command *cmd,
response = json_stream_success(cmd);
json_add_tx(response, "unsigned_tx", utx->tx);
json_add_txid(response, "txid", &utx->txid);
json_add_psbt(response, "psbt", utx->tx->psbt);
return command_success(cmd, response);
}
static const struct json_command txprepare_command = {
Expand Down

0 comments on commit a732f7c

Please sign in to comment.