From 62ccf266faa8a9bbad1345d028429bef7c3e3ef7 Mon Sep 17 00:00:00 2001 From: sstone Date: Wed, 22 Mar 2017 19:24:23 +0100 Subject: [PATCH] bolt 3: use our revocation basepoint when computing their revocation key --- lightningd/channel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lightningd/channel.c b/lightningd/channel.c index 15309f4e4..4b386578c 100644 --- a/lightningd/channel.c +++ b/lightningd/channel.c @@ -185,7 +185,7 @@ struct bitcoin_tx *channel_tx(const tal_t *ctx, &side_delayed_payment_key)) return NULL; - if (!derive_revocation_key(&channel->basepoints[side].revocation, + if (!derive_revocation_key(&channel->basepoints[!side].revocation, per_commitment_point, &side_revocation_key)) return NULL;