Skip to content

Commit

Permalink
coin moves: external deposits should be *deposits*
Browse files Browse the repository at this point in the history
Report how much the deposit was for.
  • Loading branch information
niftynei authored and rustyrussell committed Jan 26, 2022
1 parent 75df20a commit 7f511b9
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions common/coin_mvt.c
Original file line number Diff line number Diff line change
Expand Up @@ -261,11 +261,9 @@ struct chain_coin_mvt *new_coin_external_deposit(const tal_t *ctx,
struct amount_sat amount,
enum mvt_tag tag)
{
return new_chain_coin_mvt(ctx, EXTERNAL, NULL,
outpoint, NULL,
blockheight,
take(new_tag_arr(NULL, tag)),
AMOUNT_MSAT(0), true, amount);
return new_chain_coin_mvt_sat(ctx, EXTERNAL, NULL, outpoint, NULL,
blockheight, take(new_tag_arr(NULL, tag)),
amount, true);
}

bool chain_mvt_is_external(const struct chain_coin_mvt *mvt)
Expand Down

0 comments on commit 7f511b9

Please sign in to comment.