I'd like to ask 2 questions to improve my knowledge on the system, apologies if they have already been answered (I couldn't find any though).
1) When getting a message like the following, where is the closing originating from and what could the reason be? Also who is going to pay the closing fee to who?
"CHANNELD_AWAITING_LOCKIN:Reconnected, and reestablished.",
"CHANNELD_NORMAL:Reconnected, and reestablished.",
"CLOSINGD_SIGEXCHANGE:We agreed on a closing fee of 11261 satoshi",
"ONCHAIN:Tracking mutual close transaction",
"ONCHAIN:All outputs resolved: waiting 91 more blocks before forgetting channel"
2) In relation to in/out_payments_offered/fulfilled what are the typical reason why a payment is offered but not fulfilled? May be because a more convenient route was found?
Thanks for any help.
thanks for the explanation and for pointing me to some useful documentation
where is the closing originating from and what could the reason be?
My guess would be that either you or your peer decided to manually close the channel (calling lightning-cli close [peer_id] for example). None of the usual suspects for automated close really apply as long as you have a working connection and are negotiating the parameters correctly (e.g., a fee spike doesn't cause collaborative closes).
In relation to in/out_payments_offered/fulfilled what are the typical reason why a payment is offered but not fulfilled? May be because a more convenient route was found?
A payment is only retried on a different route if the first attempt which result in the offered payment has failed, i.e., the offered HTLC either succeeds, or fails, and only in the latter case it is retried. So a better route isn't really competing with you.
An offered payment may fail for a number of reasons:
Notice also that some nodes actively probe the network for failing routes, and the technique they use will show up as failed HTLCs even if the probe succeeded (they use payments that do not match an invoice). So don't think of faled in/out_payments_failed as an error, but merely some debug information we expose in addition to the successful ones :-)
Thanks for the info!
Anytime :wink:
You might get even quicker answers to these kind of things on https://bitcoin.stackexchange.com/ by the way. There's quite a few knowledgeable people lurking there as well :-)