Update test_dup_htlc_onchain_fails_on_reload for new persist API
authorMatt Corallo <git@bluematt.me>
Sun, 10 Oct 2021 18:02:17 +0000 (18:02 +0000)
committerMatt Corallo <git@bluematt.me>
Wed, 20 Oct 2021 00:06:18 +0000 (00:06 +0000)
commit3016ed2d9146bfff116f035404b333ba950a1195
tree84f0828e98763e00e7d27a45a4650cdba92859d0
parent5c2ff2cb30ef1639c80b275eea209a289dd91b77
Update test_dup_htlc_onchain_fails_on_reload for new persist API

ChannelMonitors now require that they be re-persisted before
MonitorEvents be provided to the ChannelManager, the exact thing
that test_dup_htlc_onchain_fails_on_reload was testing for when it
*didn't* happen. As such, test_dup_htlc_onchain_fails_on_reload is
now testing that we bahve correctly when the API guarantees are not
met, something we don't need to do.

Here, we adapt it to test the new API requirements through
ChainMonitor's calls to the Persist trait instead.
lightning/src/ln/functional_tests.rs
lightning/src/util/test_utils.rs