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>
Tue, 24 Oct 2023 04:16:34 +0000 (04:16 +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 37c3383a3ad566942efcc965742bb6099c53b5c2..929d56ef87bf801576f41670504e0758ee3bebcf 100644 (file)
@@ -4176,8 +4176,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::Signer>) {
+impl<'a, 'b, ES: EntropySource, SP: SignerProvider<Signer=Signer>, Signer: WriteableEcdsaChannelSigner> 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) => {