coin moves: external deposits should be *deposits*

Report how much the deposit was for.
This commit is contained in:
niftynei 2022-01-25 14:03:23 -06:00 committed by Rusty Russell
parent 75df20ace9
commit 7f511b9ba9
1 changed files with 3 additions and 5 deletions

View File

@ -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)