You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
panic!("FFI failure. the caller must set the actual serialized length of the tx-indexes in filter_block");
282
280
}
283
-
letmut matched_tx_index:&[u8] = unsafe_block!("We know the caller has set the value for serialized tx index" => &matched_tx_index[..(*matched_tx_index_len_ptr)]);
284
-
let matched_tx_indexes:Vec<u32> = lightning::util::ser::Readable::read(&mut std::io::Cursor::new(matched_tx_index)).unwrap();
letmut matched_tx_indexes:&[usize] = unsafe_block!("We know the caller has set the value for serialized tx index" => &matched_tx_index[..(*matched_tx_index_len_ptr)]);
282
+
matched_tx_indexes.to_vec()
290
283
}
291
284
292
285
fnreentered(&self) -> usize{
@@ -410,6 +403,8 @@ impl From<FFILightningError> for LightningError {
410
403
}
411
404
}
412
405
406
+
// --- routing stuff ---
407
+
/// TODO: enable to pass routing handler from outside.
let output = TxOut{value:255, script_pubkey: bitcoin::blockdata::script::Script::new()};
55
55
let static_output = SpendableOutputDescriptor::StaticOutput{outpoint, output: output.clone()};
56
56
57
-
let key = bitcoin::secp256k1::key::SecretKey::from_slice(&hex::decode("0101010101010101010101010101010101010101010101010101010101010101").unwrap()).unwrap();
57
+
let per_commitment_point = bitcoin::secp256k1::key::PublicKey::from_slice(&hex::decode("02aca35d6de21baefaf65db590611fabd42ed4d52683c36caff58761d309314f65").unwrap()).unwrap();
58
+
let remote_revocation_pubkey = bitcoin::secp256k1::key::PublicKey::from_slice(&hex::decode("02812cb18bf5c19374b34419095a09aa0b0d5559a24ce0ef558845230b0a096161").unwrap()).unwrap();
58
59
let dynamic_output_p2wsh = SpendableOutputDescriptor::DynamicOutputP2WSH{
0 commit comments