| 613 | } |
| 614 | |
| 615 | struct chain_coin_mvt *new_foreign_withdrawal(const tal_t *ctx, |
| 616 | const struct bitcoin_outpoint *outpoint, |
| 617 | const struct bitcoin_txid *spend_txid, |
| 618 | struct amount_sat amount, |
| 619 | u32 blockheight, |
| 620 | const char *account, |
| 621 | u64 timestamp) |
| 622 | { |
| 623 | struct chain_coin_mvt *e; |
| 624 | |
| 625 | e = new_chain_coin_mvt_sat(ctx, NULL, account, spend_txid, outpoint, NULL, |
| 626 | blockheight, |
| 627 | mk_mvt_tags(MVT_WITHDRAWAL, MVT_FOREIGN), |
| 628 | COIN_DEBIT, |
| 629 | amount); |
| 630 | e->timestamp = timestamp; |
| 631 | return e; |
| 632 | } |
| 633 | |
| 634 | const char **mvt_tag_strs(const tal_t *ctx, struct mvt_tags tags) |
| 635 | { |
no test coverage detected