MCPcopy Create free account
hub / github.com/ElementsProject/lightning / error_blockheight

Function error_blockheight

plugins/xpay/xpay.c:694–704  ·  view source on GitHub ↗

Extract blockheight from the error */

Source from the content-addressed store, hash-verified

692
693/* Extract blockheight from the error */
694static 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. */
707static bool process_channel_update_from_onion_error(struct command *aux_cmd,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected