From 8b6ab6a90185f410ab168eb3eb40e66a0af2c83b Mon Sep 17 00:00:00 2001 From: Christian Decker Date: Tue, 19 Dec 2017 17:11:15 +0100 Subject: [PATCH] wallet: Remember scriptpubkey that we pass to onchaind on init This is the scriptpubkey that onchaind spends all funds to, except for the their_unilateral/to-us case, so we better recognize that address. Signed-off-by: Christian Decker --- lightningd/peer_control.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lightningd/peer_control.c b/lightningd/peer_control.c index 656331a9a..ab45936bc 100644 --- a/lightningd/peer_control.c +++ b/lightningd/peer_control.c @@ -1434,6 +1434,7 @@ static enum watch_result funding_spent(struct peer *peer, tal_free(tmpctx); return DELETE_WATCH; } + txfilter_add_scriptpubkey(peer->ld->owned_txfilter, scriptpubkey); if (!bip32_pubkey(peer->ld->wallet->bip32_base, &ourkey, keyindex)) { peer_internal_error(peer,