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:
Rusty Russell 2016-06-30 09:11:11 +09:30
parent b8571c1ac8
commit 4f1a1ec044
1 changed files with 3 additions and 4 deletions

View File

@ -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)