mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-03-01 09:40:19 +01:00
BOLT: update for latest onchain draft.
It now notes that node may already know the redemption preimage, update to fix. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
b8571c1ac8
commit
4f1a1ec044
1 changed files with 3 additions and 4 deletions
|
@ -1633,10 +1633,9 @@ static void resolve_our_htlcs(struct peer *peer,
|
|||
|
||||
/* BOLT #onchain:
|
||||
*
|
||||
* If the node receives a redemption preimage for a *commitment tx* output it
|
||||
* was offered, it MUST *resolve* the output by spending it using the
|
||||
* preimage. Otherwise, the other node could spend it once it as *timed out*
|
||||
* as above.
|
||||
* If the node receives... a redemption preimage for an unresolved *commitment
|
||||
* tx* output it was offered, it MUST *resolve* the output by spending it using
|
||||
* the preimage.
|
||||
*/
|
||||
void our_htlc_fulfilled(struct peer *peer, struct htlc *htlc,
|
||||
const struct rval *preimage)
|
||||
|
|
Loading…
Add table
Reference in a new issue