mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-03-03 18:57:06 +01:00
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 <decker.christian@gmail.com>
This commit is contained in:
parent
5f29a218b7
commit
8b6ab6a901
1 changed files with 1 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue