mirror of
https://github.com/lightningdevkit/rust-lightning.git
synced 2025-03-15 15:39:09 +01:00
Use ProbabilisticScorer in router fuzzing, to cover overflows there
This commit is contained in:
parent
bfd1a57434
commit
dfe9ea3762
1 changed files with 2 additions and 2 deletions
|
@ -17,7 +17,7 @@ use lightning::ln::msgs;
|
|||
use lightning::routing::gossip::{NetworkGraph, RoutingFees};
|
||||
use lightning::routing::utxo::{UtxoFuture, UtxoLookup, UtxoLookupError, UtxoResult};
|
||||
use lightning::routing::router::{find_route, PaymentParameters, RouteHint, RouteHintHop, RouteParameters};
|
||||
use lightning::routing::scoring::FixedPenaltyScorer;
|
||||
use lightning::routing::scoring::ProbabilisticScorer;
|
||||
use lightning::util::config::UserConfig;
|
||||
use lightning::util::ser::Readable;
|
||||
|
||||
|
@ -292,7 +292,7 @@ pub fn do_test<Out: test_logger::Output>(data: &[u8], out: Out) {
|
|||
}]));
|
||||
}
|
||||
}
|
||||
let scorer = FixedPenaltyScorer::with_penalty(0);
|
||||
let scorer = ProbabilisticScorer::new(Default::default(), &net_graph, &logger);
|
||||
let random_seed_bytes: [u8; 32] = [get_slice!(1)[0]; 32];
|
||||
for target in node_pks.iter() {
|
||||
let final_value_msat = slice_to_be64(get_slice!(8));
|
||||
|
|
Loading…
Add table
Reference in a new issue