Extract blockheight from the error */
| 692 | |
| 693 | /* Extract blockheight from the error */ |
| 694 | static u32 error_blockheight(const u8 *errmsg) |
| 695 | { |
| 696 | struct amount_msat htlc_msat; |
| 697 | u32 height; |
| 698 | |
| 699 | if (!fromwire_incorrect_or_unknown_payment_details(errmsg, |
| 700 | &htlc_msat, |
| 701 | &height)) |
| 702 | return 0; |
| 703 | return height; |
| 704 | } |
| 705 | |
| 706 | /* Return true if this contained a channel_update which (potentially) changed something. */ |
| 707 | static bool process_channel_update_from_onion_error(struct command *aux_cmd, |
no outgoing calls
no test coverage detected