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:
|
/* BOLT #onchain:
|
||||||
*
|
*
|
||||||
* If the node receives a redemption preimage for a *commitment tx* output it
|
* If the node receives... a redemption preimage for an unresolved *commitment
|
||||||
* was offered, it MUST *resolve* the output by spending it using the
|
* tx* output it was offered, it MUST *resolve* the output by spending it using
|
||||||
* preimage. Otherwise, the other node could spend it once it as *timed out*
|
* the preimage.
|
||||||
* as above.
|
|
||||||
*/
|
*/
|
||||||
void our_htlc_fulfilled(struct peer *peer, struct htlc *htlc,
|
void our_htlc_fulfilled(struct peer *peer, struct htlc *htlc,
|
||||||
const struct rval *preimage)
|
const struct rval *preimage)
|
||||||
|
|
Loading…
Add table
Reference in a new issue