Skip to content

Commit

Permalink
walletrpc: explicitly note we discard utx on unsuccessful broadcast
Browse files Browse the repository at this point in the history
If we can't broadcast the transaction, you're going to have to start
over regardless.  It's a tal child of cmd, which we free here.
  • Loading branch information
niftynei authored and rustyrussell committed Oct 10, 2019
1 parent af4ffe5 commit 6e7cfcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wallet/walletrpc.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ static void wallet_withdrawal_broadcast(struct bitcoind *bitcoind UNUSED,
was_pending(command_success(cmd, response));
} else {
was_pending(command_fail(cmd, LIGHTNINGD,
"Error broadcasting transaction: %s",
"Error broadcasting transaction: %s. Unsent tx discarded",
output));
}
}
Expand Down

0 comments on commit 6e7cfcc

Please sign in to comment.