lightning
lightning copied to clipboard
Injectpaymentonion
This is a new RPC, improving on sendonion, which takes the same path as an onion coming in an HTLC from a peer. This vastly simplifies handling cases like blinded paths which start at this peer, and self-pay: both are handled automatically.
In addition, the call simply blocks, rather than requiring another call to receive the results.
Trivial master rebase, and tests are now split properly (final fixup commit). If this is OK, I'll fold and apply.