<p>Ok I move my comment to an answer</p>
<p>It is hard without taking a look at your code, but WIRE_FEE_INSUFFICIENT is a pretty clear error, there is no enough fee to route the payment.</p>
<p>WIRE_INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS Are you building your payment in the wrong way? WIRE_TEMPORARY_CHANNEL_FAILURE The channel is not responsive or something happens. Take a look at your log, it should contain the workflow that your lightning node did before the error</p>
<p>In addition, core lightning was not good when there was a single channel between two nodes. Because the pay command will split the implementation in multiple ones.</p>
<p>However, in core lightning v23.08 this was improved as the release notes mention <a href="https://github.com/ElementsProject/lightning/releases/tag/v23.08" rel="nofollow noreferrer">https://github.com/ElementsProject/lightning/releases/tag/v23.08</a></p>
<p>So I will retry with the new version too :)</p>

CC BY-SA 4.0
2023-08-25T19:44:44.267Z
2023-08-25T19:44:44.267Z
vincenzopalazzo
<p>I am working on a custom routing plugin for CLN on a regtest network. My goal is to compare its performance against the classical rebalancing plugin provided by the CLN community.</p>
<p>Now I am trying to test it with zero fees routing. However, I am encountering issues with HTLC execution (even in a classical plugin, so I assume I have some problems in a setup), and payments are failing with various errors like &quot;WIRE_FEE_INSUFFICIENT,&quot; &quot;WIRE_INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS,&quot; and &quot;WIRE_TEMPORARY_CHANNEL_FAILURE.&quot; I have already set <code>cltv-delta</code> to 6, <code>fee-base</code> to 0, and <code>htlc-minimum-msat</code> to 0 in my nodes' configuration and ensured that nodes have sufficient liquidity in its channels for routing.</p>
<p>However, the errors persist. I suspect there might be other factors influencing the HTLC routing process or issues with my plugin's logic.</p>
<p>Can someone help me troubleshoot this problem and suggest potential reasons for these errors? Is there anything else I should be considering in my custom plugin to ensure smooth HTLC execution?</p>
<p>Thank you in advance!</p>

CC BY-SA 4.0
2023-08-13T08:03:56.947Z
it is hard without taking a look at your code, but `WIRE_FEE_INSUFFICIENT` is a pretty clear error, there is no enough fee to route the payment. `WIRE_INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS` are you building your payment in the wrong way? `WIRE_TEMPORARY_CHANNEL_FAILURE` the channel is not responsive or somethings happens. Take a look to your log, they should contain the workflow that you lightning node did before the error
vincenzopalazzo
<core-lightning><regtest><hash-time-locked-contract><checklocktimeverify>
HTLC routing issues in custom LN plugin (c-lightning) on regtest network
dancingsushi
# HTLC routing issues in custom LN plugin (c-lightning) on regtest network

(Asked by: username_0 on 2023-08-03)

I am working on a custom routing plugin for CLN on a regtest network. My goal is to compare its performance against the classical rebalancing plugin provided by the CLN community.

Now I am trying to test it with zero fees routing. However, I am encountering issues with HTLC execution (even in a classical plugin, so I assume I have some problems in a setup), and payments are failing with various errors like "WIRE\_FEE\_INSUFFICIENT," "WIRE\_INCORRECT\_OR\_UNKNOWN\_PAYMENT\_DETAILS," and "WIRE\_TEMPORARY\_CHANNEL\_FAILURE." I have already set `cltv-delta` to 6, `fee-base` to 0, and `htlc-minimum-msat` to 0 in my nodes' configuration and ensured that nodes have sufficient liquidity in its channels for routing.

However, the errors persist. I suspect there might be other factors influencing the HTLC routing process or issues with my plugin's logic.

Can someone help me troubleshoot this problem and suggest potential reasons for these errors? Is there anything else I should be considering in my custom plugin to ensure smooth HTLC execution?

Thank you in advance!

**Tags:** core-lightning, regtest, hash-time-locked-contract, checklocktimeverify

> **Comments:**
> **username_1**: it is hard without taking a look at your code, but `WIRE_FEE_INSUFFICIENT` is a pretty clear error, there is no enough fee to route the payment. `WIRE_INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS` are you building your payment in the wrong way? `WIRE_TEMPORARY_CHANNEL_FAILURE` the channel is not responsive or somethings happens. Take a look to your log, they should contain the workflow that you lightning node did before the error  

---

## 1 answers

### Answer by username_1 on 2023-08-25. Score: 0

Ok I move my comment to an answer

It is hard without taking a look at your code, but WIRE\_FEE\_INSUFFICIENT is a pretty clear error, there is no enough fee to route the payment.

WIRE\_INCORRECT\_OR\_UNKNOWN\_PAYMENT\_DETAILS Are you building your payment in the wrong way? WIRE\_TEMPORARY\_CHANNEL\_FAILURE The channel is not responsive or something happens. Take a look at your log, it should contain the workflow that your lightning node did before the error

In addition, core lightning was not good when there was a single channel between two nodes. Because the pay command will split the implementation in multiple ones.

However, in core lightning v23.08 this was improved as the release notes mention <https://github.com/ElementsProject/lightning/releases/tag/v23.08>

So I will retry with the new version too :)


---

