|
|
@ -1131,9 +1131,9 @@ int peer_got_revoke(struct peer *peer, const u8 *msg) |
|
|
|
* A receiving node MAY fail if the `per_commitment_secret` was not |
|
|
|
* generated by the protocol in [BOLT #3] |
|
|
|
*/ |
|
|
|
if (!shachain_add_hash(&peer->their_shachain, |
|
|
|
shachain_index(revokenum), |
|
|
|
&per_commitment_secret)) { |
|
|
|
if (!wallet_shachain_add_hash(peer->ld->wallet, &peer->their_shachain, |
|
|
|
shachain_index(revokenum), |
|
|
|
&per_commitment_secret)) { |
|
|
|
char *err = tal_fmt(peer, |
|
|
|
"Bad per_commitment_secret %s for %"PRIu64, |
|
|
|
type_to_string(msg, struct sha256, |
|
|
|