diff --git a/lightningd/onchain_control.c b/lightningd/onchain_control.c index da24e6c4c..dd9549c0a 100644 --- a/lightningd/onchain_control.c +++ b/lightningd/onchain_control.c @@ -276,8 +276,10 @@ static void handle_onchain_log_coin_move(struct channel *channel, const u8 *msg) return; } - mvt->account_name = - type_to_string(mvt, struct channel_id, &channel->cid); + /* Any 'ignored' payments get registed to the wallet */ + if (!mvt->account_name) + mvt->account_name = type_to_string(mvt, struct channel_id, + &channel->cid); notify_chain_mvt(channel->peer->ld, mvt); tal_free(mvt); }