Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
In maybe_fulfill_htlc, return two items: (preimage, (payment_key, callback)). Rationale: The caller needs a payment_key only if we return a callback. If we do not, the caller should use the payment_key that was previously stored in channel.unfulfilled_htlcs Note that for trampoline onions, payment_key may contain the inner or outer secret.
- Loading branch information
Showing
1 changed file
with
31 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters