]> git.bitcoin.ninja Git - rust-lightning/commitdiff
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, 14 May 2024 20:46:40 +0000 (20:46 +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 b8598eabb972daab40551eb3c7ada7f4b6ace80d..f3e2653844d1fea898b199ae306f17046c416d0c 100644 (file)
@@ -4468,8 +4468,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) => {