| 1846 | } |
| 1847 | |
| 1848 | static enum watch_result funding_spent(struct channel *channel, |
| 1849 | const struct bitcoin_tx *tx, |
| 1850 | size_t inputnum UNUSED, |
| 1851 | const struct block *block) |
| 1852 | { |
| 1853 | struct bitcoin_txid txid; |
| 1854 | bitcoin_txid(tx, &txid); |
| 1855 | |
| 1856 | wallet_channeltxs_add(channel->peer->ld->wallet, channel, |
| 1857 | WIRE_ONCHAIND_INIT, &txid, 0, block->height); |
| 1858 | return onchaind_funding_spent(channel, tx, block->height); |
| 1859 | } |
| 1860 | |
| 1861 | void channel_watch_wrong_funding(struct lightningd *ld, struct channel *channel) |
| 1862 | { |
nothing calls this directly
no test coverage detected