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;