Skip to content

Commit

Permalink
proposal_meets_depth tracked output always has a proposal
Browse files Browse the repository at this point in the history
  • Loading branch information
instagibbs authored and rustyrussell committed Jan 12, 2023
1 parent 6044184 commit 300f732
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions onchaind/onchaind.c
Original file line number Diff line number Diff line change
Expand Up @@ -1161,7 +1161,10 @@ static void proposal_should_rbf(struct tracked_output *out)

static void proposal_meets_depth(struct tracked_output *out)
{
bool is_rbf = false;
assert(out->proposal);

/* Our own penalty transactions are going to be RBFed. */
bool is_rbf = proposal_is_rbfable(out->proposal);

/* If we simply wanted to ignore it after some depth */
if (!out->proposal->tx) {
Expand All @@ -1180,10 +1183,6 @@ static void proposal_meets_depth(struct tracked_output *out)
tx_type_name(out->tx_type),
output_type_name(out->output_type));

if (out->proposal)
/* Our own penalty transactions are going to be RBFed. */
is_rbf = proposal_is_rbfable(out->proposal);

wire_sync_write(
REQ_FD,
take(towire_onchaind_broadcast_tx(
Expand Down

0 comments on commit 300f732

Please sign in to comment.