bolt 3: use our revocation basepoint when computing their revocation key

This commit is contained in:
sstone 2017-03-22 19:24:23 +01:00 committed by Rusty Russell
parent 21d7ed0cf6
commit 62ccf266fa

View File

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