Drop Clone from ChannelMonitor.
authorMatt Corallo <git@bluematt.me>
Wed, 12 Feb 2020 20:47:04 +0000 (15:47 -0500)
committerMatt Corallo <git@bluematt.me>
Thu, 27 Feb 2020 00:15:32 +0000 (19:15 -0500)
commitab7a0a54318cdd55bedc3a02604af200b16e2e2c
treeeab169001c5e76a42daa1de0d4a162c17bc55d54
parent3e26bd7a1dfb780d4534304f7e48f66a7ae1a9ea
Drop Clone from ChannelMonitor.

This removes the somewhat-easy-to-misuse Clone from ChannelMonitors,
opening us up to being able to track Events in ChannelMonitors with
less risk of misuse.

Sadly it doesn't remove the Clone requirement for ChannelKeys,
though gets us much closer - we now just need to request a second
copy once when we go to create the ChannelMonitors.
lightning/src/chain/keysinterface.rs
lightning/src/ln/channel.rs
lightning/src/ln/channelmonitor.rs
lightning/src/ln/functional_tests.rs
lightning/src/util/test_utils.rs