]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Use an explicit `Sign` type on the `ChannelMonitor` read tuple 2022-12-0.0.113-bindings
authorMatt Corallo <git@bluematt.me>
Sat, 24 Dec 2022 04:16:48 +0000 (04:16 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 3 Jan 2023 22:09:15 +0000 (22:09 +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 a41d853311ce924f388eaa5efbbb2ceb79489a64..7a99fb0099e989e35f83f57b487f546d16205e5b 100644 (file)
@@ -3693,8 +3693,8 @@ where
 
 const MAX_ALLOC_SIZE: usize = 64*1024;
 
-impl<'a, K: KeysInterface> ReadableArgs<&'a K>
-               for (BlockHash, ChannelMonitor<K::Signer>) {
+impl<'a, K: KeysInterface<Signer = Signer>, Signer: Sign> ReadableArgs<&'a K>
+               for (BlockHash, ChannelMonitor<Signer>) {
        fn read<R: io::Read>(reader: &mut R, keys_manager: &'a K) -> Result<Self, DecodeError> {
                macro_rules! unwrap_obj {
                        ($key: expr) => {