projects
/
rust-lightning
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Abide by max path length param in router.
[rust-lightning]
/
fuzz
/
src
/
refund_deser.rs
diff --git
a/fuzz/src/refund_deser.rs
b/fuzz/src/refund_deser.rs
index 9c231aa5234104158603097cdf7cd05d966fc8ad..14b136ec35b6d06837c09e997523fc5d093944c1 100644
(file)
--- a/
fuzz/src/refund_deser.rs
+++ b/
fuzz/src/refund_deser.rs
@@
-9,7
+9,7
@@
use bitcoin::secp256k1::{KeyPair, PublicKey, Secp256k1, SecretKey, self};
use crate::utils::test_logger;
use bitcoin::secp256k1::{KeyPair, PublicKey, Secp256k1, SecretKey, self};
use crate::utils::test_logger;
-use core::convert::
{Infallible, TryFrom}
;
+use core::convert::
TryFrom
;
use lightning::blinded_path::BlindedPath;
use lightning::sign::EntropySource;
use lightning::ln::PaymentHash;
use lightning::blinded_path::BlindedPath;
use lightning::sign::EntropySource;
use lightning::ln::PaymentHash;
@@
-33,9
+33,9
@@
pub fn do_test<Out: test_logger::Output>(data: &[u8], _out: Out) {
if let Ok(invoice) = build_response(&refund, pubkey, &secp_ctx) {
invoice
if let Ok(invoice) = build_response(&refund, pubkey, &secp_ctx) {
invoice
- .sign(|message: &UnsignedBolt12Invoice|
-> Result<_, Infallible> {
+ .sign(|message: &UnsignedBolt12Invoice|
Ok(secp_ctx.sign_schnorr_no_aux_rand(message.as_ref().as_digest(), &keys))
Ok(secp_ctx.sign_schnorr_no_aux_rand(message.as_ref().as_digest(), &keys))
-
}
)
+ )
.unwrap()
.write(&mut buffer)
.unwrap();
.unwrap()
.write(&mut buffer)
.unwrap();