From b7ae2f3ac7cb69dd539b35df24afdeb26a92aa22 Mon Sep 17 00:00:00 2001 From: trueptolemy Date: Sat, 24 Aug 2019 05:39:31 +0800 Subject: [PATCH] Fix: Store the transaction(broadcast by `txsend`) into DB --- wallet/walletrpc.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wallet/walletrpc.c b/wallet/walletrpc.c index 2b0700cdb..20d016e54 100644 --- a/wallet/walletrpc.c +++ b/wallet/walletrpc.c @@ -397,6 +397,10 @@ static struct command_result *json_txsend(struct command *cmd, /* We're the owning cmd now. */ utx->wtx->cmd = cmd; + wallet_transaction_add(cmd->ld->wallet, utx->tx, 0, 0); + wallet_transaction_annotate(cmd->ld->wallet, &utx->txid, + TX_UNKNOWN, 0); + return broadcast_and_wait(cmd, utx); }