txprepare: remove old code, switch to plugin.

Some minor phrasing differences cause test changes.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Changelog-Changed: txprepare reservations stay across restarts: use fundpsbt/reservepsbt/unreservepsbt
Changelog-Removed: txprepare `destination` `satoshi` argument form removed (deprecated v0.7.3)
This commit is contained in:
Rusty Russell
2020-08-28 12:07:57 +09:30
parent 843d3d6745
commit 6b2a3f4dfb
4 changed files with 22 additions and 134 deletions

View File

@@ -434,21 +434,21 @@ static struct command_result *json_txsend(struct command *cmd,
static const struct plugin_command commands[] = {
{
"newtxprepare",
"txprepare",
"bitcoin",
"Create a transaction, with option to spend in future (either txsend and txdiscard)",
"Create an unsigned transaction paying {outputs} with optional {feerate}, {minconf} and {utxos}",
json_txprepare
},
{
"newtxdiscard",
"txdiscard",
"bitcoin",
"Discard a transaction created by txprepare",
"Discard a transcation by {txid}",
json_txdiscard
},
{
"newtxsend",
"txsend",
"bitcoin",
"Send a transaction created by txprepare",
"Send a transacation by {txid}",