| 679 | } |
| 680 | |
| 681 | static struct proposed_resolution *new_proposed_resolution(struct tracked_output *out, |
| 682 | unsigned int block_required, |
| 683 | enum tx_type tx_type) |
| 684 | { |
| 685 | struct proposed_resolution *proposal = tal(out, struct proposed_resolution); |
| 686 | proposal->tx_type = tx_type; |
| 687 | proposal->depth_required = block_required - out->tx_blockheight; |
| 688 | |
| 689 | return proposal; |
| 690 | } |
| 691 | |
| 692 | /* Modern style: we don't create tx outselves, but tell lightningd. */ |
| 693 | static void propose_resolution_to_master(struct tracked_output *out, |
no outgoing calls
no test coverage detected