Join Nostr
2026-04-26 00:23:51 UTC

Rusty Russell on Nostr: #CLN We're finally deprecating pay (in favor of xpay) in the next release: Greenlight ...

#CLN We're finally deprecating pay (in favor of xpay) in the next release: Greenlight has conclusively demonstrated that it's more effective across the board. That begins the 12 month window to removal.

We've long had `xpay-as-pay` for xpay to take over pay commands. Flipping that to default true and running the tests has been eye-opening.

Given our commitment to not breaking users, I'm re-learning things about pay. For example, if you try to pay the same invoice twice, pay "succeeds", whereas xpay says you've already paid. So when acting as pay, xpay needs to do that too.

Mostly, the xpay error messages are much more informative and readable. But in a couple of cases they didn't use the correct error *code* (eg. There's a specific one for "route too expensive") so that's fixed.

After this, I'll get back to my new "repeatpay" command and plug-in, which is a higher-level way to deal with recurring offers (an experimental option for now).