From: Arik Sosman Date: Tue, 6 Aug 2024 18:53:32 +0000 (-0700) Subject: Fix bitcoin type compliance for network/signature stuff. X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=47335459dafc3b5f283c0155273ddf002c3f185f;p=rust-lightning Fix bitcoin type compliance for network/signature stuff. --- diff --git a/lightning/src/ln/chan_utils.rs b/lightning/src/ln/chan_utils.rs index c3aa3e17e..37398e223 100644 --- a/lightning/src/ln/chan_utils.rs +++ b/lightning/src/ln/chan_utils.rs @@ -736,7 +736,7 @@ pub fn build_htlc_input_witness( let mut witness = Witness::new(); // First push the multisig dummy, note that due to BIP147 (NULLDUMMY) it must be a zero-length element. witness.push(vec![]); - witness.push_ecdsa_signature(&BitcoinSignature { sig: *remote_sig, hash_ty: remote_sighash_type }); + witness.push_ecdsa_signature(&BitcoinSignature { signature: *remote_sig, sighash_type: remote_sighash_type }); witness.push_ecdsa_signature(&BitcoinSignature::sighash_all(*local_sig)); if let Some(preimage) = preimage { witness.push(preimage.0.to_vec()); diff --git a/lightning/src/offers/invoice.rs b/lightning/src/offers/invoice.rs index c4f4e4a43..6077043b4 100644 --- a/lightning/src/offers/invoice.rs +++ b/lightning/src/offers/invoice.rs @@ -1079,7 +1079,7 @@ pub(super) fn filter_fallbacks( Ok(witness_program) => witness_program, Err(_) => return None, }; - Some(Address::from_witness_program(witness_program, network.into())) + Some(Address::from_witness_program(witness_program, network)) }; fallbacks.iter().filter_map(to_valid_address).collect()