mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 23:24:27 +01:00
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.
This commit is contained in:
@@ -266,7 +266,7 @@ static void handle_onchain_log_coin_move(struct channel *channel, const u8 *msg)
|
|||||||
if (!mvt->account_name)
|
if (!mvt->account_name)
|
||||||
mvt->account_name = type_to_string(mvt, struct channel_id,
|
mvt->account_name = type_to_string(mvt, struct channel_id,
|
||||||
&channel->cid);
|
&channel->cid);
|
||||||
else if (chain_mvt_is_external(mvt))
|
else
|
||||||
mvt->originating_acct = type_to_string(mvt, struct channel_id,
|
mvt->originating_acct = type_to_string(mvt, struct channel_id,
|
||||||
&channel->cid);
|
&channel->cid);
|
||||||
notify_chain_mvt(channel->peer->ld, mvt);
|
notify_chain_mvt(channel->peer->ld, mvt);
|
||||||
|
|||||||
Reference in New Issue
Block a user