Use an explicit `Sign` type on the `ChannelMonitor` read tuple
authorMatt Corallo <git@bluematt.me>
Sat, 24 Dec 2022 04:16:48 +0000 (04:16 +0000)
committerMatt Corallo <git@bluematt.me>
Mon, 22 Apr 2024 21:57:48 +0000 (21:57 +0000)
The bindings currently get confused by the implicit `Sign` type, so
we temporarily remove it on the `impl` here.

lightning/src/chain/channelmonitor.rs

index c81a48b78ac8b4aa6fba1facae191f7190e27d51..6e1841281b79e9a5b8c59bb497bda9270d99dd99 100644 (file)
@@ -4338,8 +4338,8 @@ where
 
 const MAX_ALLOC_SIZE: usize = 64*1024;
 
-impl<'a, 'b, ES: EntropySource, SP: SignerProvider> ReadableArgs<(&'a ES, &'b SP)>
-               for (BlockHash, ChannelMonitor<SP::EcdsaSigner>) {
+impl<'a, 'b, ES: EntropySource, Signer: WriteableEcdsaChannelSigner, SP: SignerProvider<EcdsaSigner=Signer>> ReadableArgs<(&'a ES, &'b SP)>
+               for (BlockHash, ChannelMonitor<Signer>) {
        fn read<R: io::Read>(reader: &mut R, args: (&'a ES, &'b SP)) -> Result<Self, DecodeError> {
                macro_rules! unwrap_obj {
                        ($key: expr) => {