3

I want to know how my payment was routed, how many hops, nodes and fees etc. So I can prepare my channels better. I see in the listpays, it contains info like bolt11, destination, payment_hash, but lacks of details.

1

Older version of c-lightning used to output the routes in the sendpay command that was used by pay if you look in your log-file you would find something like sendpay via route: us -> which then included information about all the hops, channels, forwarded amounts and cltv_deltas.

Since the new pay plugin it seems indeed that they have changed the log file entries. I have just tried to make a payment and extracted the following from my log file

INFO    plugin-pay: cmd 103109 partid 1: failed: WIRE_TEMPORARY_CHANNEL_FAILURE (reply from remote)
INFO    plugin-pay: cmd 103109 partid 2: failed: WIRE_UNKNOWN_NEXT_PEER (reply from remote)

around those lines you will actually find more precise information which channels failed which is consistent with their code base at https://github.com/ElementsProject/lightning/blob/75720ad0e1690052c108fbf457ded807bf09d6c1/lightningd/pay.c#L620 says that pay will produce the following log entry:

            log_info(hout->key.channel->log,
                 "htlc %"PRIu64" "
                 "failed from %ith node "
                 "with code 0x%04x (%s)",
                 hout->key.id,
                 origin_index,
                 failcode, onion_wire_name(failcode));

However I did not see the exact information in my log file indicating along which routs the payments where attempted with what amounts making the above mentioned log entry less useful. So unless I am completely mistaking I am surprised to write that it seems as if the requested information only exists out of the box in older versions of c-lightning.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.