Make ManyChannelMonitor Keys an associated type
authorMatt Corallo <git@bluematt.me>
Tue, 12 May 2020 17:20:31 +0000 (13:20 -0400)
committerMatt Corallo <git@bluematt.me>
Fri, 22 May 2020 17:59:14 +0000 (13:59 -0400)
commit6afda60d8898455a003e7e085e0b6f1c1277d8fa
treefe3e53e6317f1577248860f4a43ee24be159a822
parent8ade071d568f8668e3f820e43c894b9e574fd569
Make ManyChannelMonitor Keys an associated type

Instead of using a raw generic type, an associted type allows us
to have explicit docs on the type, which is nice. More importantly,
however, our automated bindings generator knows how to read
associated types but not raw generics.

Also, our bindings generator expects things which are referenced to
have already been defined, so we move ManyChannelMonitor below the
ChannelMonitor definition.
fuzz/src/chanmon_consistency.rs
lightning/src/ln/channelmanager.rs
lightning/src/ln/channelmonitor.rs
lightning/src/util/test_utils.rs