| 595 | } |
| 596 | |
| 597 | struct chain_coin_mvt *new_foreign_deposit(const tal_t *ctx, |
| 598 | const struct bitcoin_outpoint *outpoint, |
| 599 | u32 blockheight, |
| 600 | struct amount_sat amount, |
| 601 | const char *account, |
| 602 | u64 timestamp) |
| 603 | { |
| 604 | struct chain_coin_mvt *e; |
| 605 | |
| 606 | e = new_chain_coin_mvt_sat(ctx, NULL, account, NULL, outpoint, NULL, |
| 607 | blockheight, |
| 608 | mk_mvt_tags(MVT_DEPOSIT, MVT_FOREIGN), |
| 609 | COIN_CREDIT, |
| 610 | amount); |
| 611 | e->timestamp = timestamp; |
| 612 | return e; |
| 613 | } |
| 614 | |
| 615 | struct chain_coin_mvt *new_foreign_withdrawal(const tal_t *ctx, |
| 616 | const struct bitcoin_outpoint *outpoint, |
no test coverage detected