Open gpBlockchain opened 4 weeks ago
I'm not sure whether we should fix it.
The error code is implemented with reference of BOLTS: https://github.com/lightning/bolts/blob/master/04-onion-routing.md#returning-errors
We need to get a balance between privacy and convenience of identifying the specific cause of the error.
I have the same confusion. I focused only on the error message returned by the send_payment
RPC and overlooked the node logs, which made it take me a long time to pinpoint the cause of the error.
When the payment I send causes TlcValueInflightExceedLimit, the error message is TemporaryChannelFailure, making it difficult for users to identify the specific cause of the error.