]> git.bitcoin.ninja Git - rust-lightning/commit
Read monitors from our KeysInterface in chanmon_consistency_fuzz
authorMatt Corallo <git@bluematt.me>
Tue, 9 Feb 2021 20:22:44 +0000 (15:22 -0500)
committerMatt Corallo <git@bluematt.me>
Mon, 1 Mar 2021 02:03:18 +0000 (21:03 -0500)
commit6b22abd4f7fb858673bbaf976e60113f23db4036
tree4593520cb226f8c61f0e5a6bfea93f7c7dc1f1e6
parent627df710c8e9985f90ec74fde7a00139620e4a9d
Read monitors from our KeysInterface in chanmon_consistency_fuzz

If the fuzz target is failing due to a channel force-close, the
immediately-visible error is that we're signing a stale state. This
is because the ChannelMonitorUpdateStep::ChannelForceClosed event
results in a signature in the test clone which was deserialized
using a OnlyReadsKeysInterface. Instead, we need to deserialize
using the full KeysInterface instance.
fuzz/src/chanmon_consistency.rs