From bdf4eede98acfc7bd2e86b8123e7d9f11e44c1e4 Mon Sep 17 00:00:00 2001 From: edouard Date: Wed, 29 Jun 2022 11:57:14 +0200 Subject: [PATCH] Add deposit_outpoints to get_spend_tx Adding this new field simplifies greatly the caching of spend transaction on the watchtower side. It is possible to change the API further by changing `get_spend_tx ` for `get_spend_txs [, ...]` --- messages.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/messages.md b/messages.md index 702130b..f1cfc1c 100644 --- a/messages.md +++ b/messages.md @@ -352,7 +352,8 @@ return `null`. ```json { "result": { - "spend_tx": "base64 of Bitcoin-serialized spend tx" + "spend_tx": "base64 of Bitcoin-serialized spend tx", + "deposit_outpoints": ["txid:vout", "txid:vout"] } } ``` @@ -361,6 +362,7 @@ or, if the coordinator doesn't have the spend: { "result": { "spend_tx": null, + "deposit_outpoints": [] } } ```