| 640 | } |
| 641 | |
| 642 | static struct proposed_resolution *new_proposed_resolution(struct tracked_output *out, |
| 643 | unsigned int block_required, |
| 644 | enum tx_type tx_type) |
| 645 | { |
| 646 | struct proposed_resolution *proposal = tal(out, struct proposed_resolution); |
| 647 | proposal->tx_type = tx_type; |
| 648 | proposal->depth_required = block_required - out->tx_blockheight; |
| 649 | |
| 650 | return proposal; |
| 651 | } |
| 652 | |
| 653 | /* Modern style: we don't create tx outselves, but tell lightningd. */ |
| 654 | static void propose_resolution_to_master(struct tracked_output *out, |
no outgoing calls
no test coverage detected