mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 18:11:28 +01:00
Fix: Store the transaction(broadcast by txsend
) into DB
This commit is contained in:
parent
afbed94a6c
commit
b7ae2f3ac7
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user