mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-23 00:54:20 +01:00
onchaind: Use louder warning where needed
This commit is contained in:
@@ -674,8 +674,7 @@ static void unknown_spend(struct tracked_output *out,
|
|||||||
out->resolved->depth = 0;
|
out->resolved->depth = 0;
|
||||||
out->resolved->tx_type = UNKNOWN_TXTYPE;
|
out->resolved->tx_type = UNKNOWN_TXTYPE;
|
||||||
|
|
||||||
/* FIXME: we need a louder warning! */
|
status_broken("Unknown spend of %s/%s by %s",
|
||||||
status_trace("Unknown spend of %s/%s by %s",
|
|
||||||
tx_type_name(out->tx_type),
|
tx_type_name(out->tx_type),
|
||||||
output_type_name(out->output_type),
|
output_type_name(out->output_type),
|
||||||
type_to_string(tmpctx, struct bitcoin_tx, tx));
|
type_to_string(tmpctx, struct bitcoin_tx, tx));
|
||||||
@@ -1231,8 +1230,7 @@ static void handle_preimage(const struct chainparams *chainparams,
|
|||||||
|
|
||||||
/* Too late? */
|
/* Too late? */
|
||||||
if (outs[i]->resolved) {
|
if (outs[i]->resolved) {
|
||||||
/* FIXME: We need a better warning method! */
|
status_broken("HTLC already resolved by %s"
|
||||||
status_trace("WARNING: HTLC already resolved by %s"
|
|
||||||
" when we found preimage",
|
" when we found preimage",
|
||||||
tx_type_name(outs[i]->resolved->tx_type));
|
tx_type_name(outs[i]->resolved->tx_type));
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user