Skip to content

v26.04rc1 is paying fees via bolt12 if the destination is a direct peer #9006

@daywalker90

Description

@daywalker90

When using bolt12 and paying direct peers as destination, both pay and xpay seem to suddenly pay fees.

Fetching an invoice for 10000msat and pay it and i get:

l1-cli pay "<removed>"
{
   "destination": "035ed467e11a1990fd4fc7d98dafbc3c49abcf8d2a48fb24f914e909e95a6737cb",
   "payment_hash": "b461b5fae962473ad0d198c0a69e458cbd6a9ef959918ea5cd6c434e75422ff4",
   "created_at": 1774304621.999080537,
   "parts": 1,
   "amount_msat": 10001,
   "amount_sent_msat": 10001,
   "payment_preimage": "a70a45a55d5121b9ba54daeb62a8cb0bb31fcaeda643974ef3ed8952c0c83f55",
   "status": "complete"
}

Similar with xpay, but with xpay only amount_sent_msat is increased.

I would expect pay/xpay to not pay fees when the destination of the payment is a direct peer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions