| 1191 | } |
| 1192 | |
| 1193 | static void propose_resolution(struct tracked_output *out, |
| 1194 | const struct bitcoin_tx *tx, |
| 1195 | unsigned int depth_required, |
| 1196 | enum tx_type tx_type) |
| 1197 | { |
| 1198 | status_debug("Propose handling %s/%s by %s (%s) after %u blocks", |
| 1199 | tx_type_name(out->tx_type), |
| 1200 | output_type_name(out->output_type), |
| 1201 | tx_type_name(tx_type), |
| 1202 | tx ? type_to_string(tmpctx, struct bitcoin_tx, tx):"IGNORING", |
| 1203 | depth_required); |
| 1204 | |
| 1205 | out->proposal = tal(out, struct proposed_resolution); |
| 1206 | out->proposal->tx = tal_steal(out->proposal, tx); |
| 1207 | out->proposal->depth_required = depth_required; |
| 1208 | out->proposal->tx_type = tx_type; |
| 1209 | |
| 1210 | if (depth_required == 0) |
| 1211 | proposal_meets_depth(out); |
| 1212 | } |
| 1213 | |
| 1214 | static void propose_resolution_at_block(struct tracked_output *out, |
| 1215 | const struct bitcoin_tx *tx, |
no test coverage detected