]> git.bitcoin.ninja Git - rust-lightning/commit
Split update_holder_per_commitment
authorChris Waterson <waterson@gmail.com>
Wed, 25 Oct 2023 21:38:54 +0000 (14:38 -0700)
committerChris Waterson <waterson@gmail.com>
Wed, 25 Oct 2023 22:10:37 +0000 (15:10 -0700)
commitb1a27f2abf337d16d036b442e21636a2bfc07d98
tree474971c34df7021cb6b9f911b8c9acfc76369443
parent0967961ab898c7975f2aff7838bbb6015309b4b4
Split update_holder_per_commitment

Split `update_holder_per_commitment` into two parts:

1. `update_holder_per_commitment_point`, which we call to retrieve a new
   commitment point.
2. `update_holder_commitment_secret`, which we call when we're ready to
   release the commitment secret.

This delays releasing the secret until we actually need it for the
revoke-and-ack.

By doing this, we restore the signer check to its original condition, as well.
lightning/src/ln/channel.rs
lightning/src/ln/channelmanager.rs
lightning/src/util/test_channel_signer.rs