Bitcoin

HTLC routing issue in custom LN plugin (c-lightning) on ​​regtest network

I’m working on a custom routing plugin for CLN on a regtest network. My goal is to compare its performance with existing rebalancing plugins provided by the CLN community.

Now I’m going to test it with fee-free routing. However, I’m having trouble running HTLC (I assume there’s something wrong with my setup in the classic plugin as well) and the payment fails with various errors like “WIRE_FEE_INSUFFICIENT”, “WIRE_INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS” and “WIRE_TEMPORARY_CHANNEL_FAILURE”. I’ve already set up cltv-delta up to 6, fee-base to 0, and htlc-minimum-msat I set my node configuration to 0 and ensured that the node had enough liquidity on the channel for routing.

However, the error persists. I believe there may be a problem with my plugin logic or other factors affecting the HTLC routing process.

Can someone help me resolve this issue and suggest potential reasons for this error? Is there anything else I need to consider in my custom plugin to ensure smooth HTLC execution?

Thank you in advance!

Related Articles

Back to top button