From 12cbf614cd5e967c86ac71172d5ee7bedfb34316 Mon Sep 17 00:00:00 2001 From: niftynei Date: Tue, 8 Feb 2022 14:40:55 -0600 Subject: [PATCH] coin_mvt: mark every event that already has a destination Every event that's coming out of here that specifies a different place to be deposited should be marked as originating from this channel's account. --- lightningd/onchain_control.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lightningd/onchain_control.c b/lightningd/onchain_control.c index fa8c2139c..14784aa2b 100644 --- a/lightningd/onchain_control.c +++ b/lightningd/onchain_control.c @@ -266,7 +266,7 @@ static void handle_onchain_log_coin_move(struct channel *channel, const u8 *msg) if (!mvt->account_name) mvt->account_name = type_to_string(mvt, struct channel_id, &channel->cid); - else if (chain_mvt_is_external(mvt)) + else mvt->originating_acct = type_to_string(mvt, struct channel_id, &channel->cid); notify_chain_mvt(channel->peer->ld, mvt);