Add support for retrieving and suspending the channel signer
authorChris Waterson <waterson@gmail.com>
Wed, 6 Sep 2023 18:38:34 +0000 (11:38 -0700)
committerChris Waterson <waterson@gmail.com>
Wed, 25 Oct 2023 16:26:32 +0000 (09:26 -0700)
commit5f3a7f2e4b96082b3c151e64c746849ec1d30e02
tree85ef6d1306e889c1667ef6a73853fb49c4da4fb1
parent242c2f5bb33000c7dd56aa8ee85933283ff1a98a
Add support for retrieving and suspending the channel signer

This adds a `get_signer` method to the context so that a test can get ahold of
the channel signer. Adds a `set_available` method on the `TestChannelSigner`
to allow a test to enable and disable the signer: when disabled some of the
signer's methods will return `Err` which will typically activate the error
handling case. Adds a `set_channel_signer_available` function on the test
`Node` class to make it easy to enable and disable a specific signer.

Fix fuzz test
fuzz/src/chanmon_consistency.rs
lightning/src/ln/channel.rs
lightning/src/ln/functional_test_utils.rs
lightning/src/util/test_channel_signer.rs