| 409 | } |
| 410 | |
| 411 | bool unwatch_scriptpubkey_(const tal_t *ctx, |
| 412 | struct chain_topology *topo, |
| 413 | const u8 *scriptpubkey, |
| 414 | const struct bitcoin_outpoint *expected_outpoint, |
| 415 | struct amount_sat expected_amount, |
| 416 | void (*cb)(struct lightningd *ld, |
| 417 | const struct bitcoin_tx *tx, |
| 418 | u32 outnum, |
| 419 | const struct txlocator *loc, |
| 420 | void *), |
| 421 | void *arg) |
| 422 | { |
| 423 | struct scriptpubkeywatch *w = find_watchscriptpubkey(topo->scriptpubkeywatches, |
| 424 | scriptpubkey, |
| 425 | expected_outpoint, |
| 426 | expected_amount, |
| 427 | cb, arg); |
| 428 | if (w) { |
| 429 | tal_free(w); |
| 430 | return true; |
| 431 | } |
| 432 | return false; |
| 433 | } |
| 434 | |
| 435 | bool watch_check_tx_outputs(const struct chain_topology *topo, |
| 436 | const struct txlocator *loc, |
nothing calls this directly
no test coverage detected