Skip to content

Commit 577dcfb

Browse files
committed
Use an explicit Sign type on the ChannelMonitor read tuple
The bindings currently get confused by the implicit `Sign` type, so we temporarily remove it on the `impl` here.
1 parent 28ed4a5 commit 577dcfb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lightning/src/chain/channelmonitor.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6434,8 +6434,8 @@ where
64346434

64356435
const MAX_ALLOC_SIZE: usize = 64 * 1024;
64366436

6437-
impl<'a, 'b, ES: EntropySource, SP: SignerProvider> ReadableArgs<(&'a ES, &'b SP)>
6438-
for (BlockHash, ChannelMonitor<SP::EcdsaSigner>)
6437+
impl<'a, 'b, ES: EntropySource, Signer: EcdsaChannelSigner, SP: SignerProvider<EcdsaSigner = Signer>> ReadableArgs<(&'a ES, &'b SP)>
6438+
for (BlockHash, ChannelMonitor<Signer>)
64396439
{
64406440
fn read<R: io::Read>(reader: &mut R, args: (&'a ES, &'b SP)) -> Result<Self, DecodeError> {
64416441
match <Option<Self>>::read(reader, args) {
@@ -6446,8 +6446,8 @@ impl<'a, 'b, ES: EntropySource, SP: SignerProvider> ReadableArgs<(&'a ES, &'b SP
64466446
}
64476447
}
64486448

6449-
impl<'a, 'b, ES: EntropySource, SP: SignerProvider> ReadableArgs<(&'a ES, &'b SP)>
6450-
for Option<(BlockHash, ChannelMonitor<SP::EcdsaSigner>)>
6449+
impl<'a, 'b, ES: EntropySource, Signer: EcdsaChannelSigner, SP: SignerProvider<EcdsaSigner = Signer>> ReadableArgs<(&'a ES, &'b SP)>
6450+
for Option<(BlockHash, ChannelMonitor<Signer>)>
64516451
{
64526452
#[rustfmt::skip]
64536453
fn read<R: io::Read>(reader: &mut R, args: (&'a ES, &'b SP)) -> Result<Self, DecodeError> {

0 commit comments

Comments
 (0)