projects
/
rust-lightning
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #1974 from danielgranhao/speed-up-secure-random-byte-gen
[rust-lightning]
/
lightning
/
src
/
routing
/
scoring.rs
diff --git
a/lightning/src/routing/scoring.rs
b/lightning/src/routing/scoring.rs
index f644e79d461bb819bc88111c2732840194c27461..3c451098eef369b2de1cd513c96bd586145dd5af 100644
(file)
--- a/
lightning/src/routing/scoring.rs
+++ b/
lightning/src/routing/scoring.rs
@@
-1602,6
+1602,7
@@
impl<T: Time> Readable for ChannelLiquidity<T> {
#[cfg(test)]
mod tests {
use super::{ChannelLiquidity, HistoricalBucketRangeTracker, ProbabilisticScoringParameters, ProbabilisticScorerUsingTime};
#[cfg(test)]
mod tests {
use super::{ChannelLiquidity, HistoricalBucketRangeTracker, ProbabilisticScoringParameters, ProbabilisticScorerUsingTime};
+ use crate::util::config::UserConfig;
use crate::util::time::Time;
use crate::util::time::tests::SinceEpoch;
use crate::util::time::Time;
use crate::util::time::tests::SinceEpoch;
@@
-1696,7
+1697,7
@@
mod tests {
let node_2_secret = &SecretKey::from_slice(&[40; 32]).unwrap();
let secp_ctx = Secp256k1::new();
let unsigned_announcement = UnsignedChannelAnnouncement {
let node_2_secret = &SecretKey::from_slice(&[40; 32]).unwrap();
let secp_ctx = Secp256k1::new();
let unsigned_announcement = UnsignedChannelAnnouncement {
- features: channelmanager::provided_channel_features(),
+ features: channelmanager::provided_channel_features(
&UserConfig::default()
),
chain_hash: genesis_hash,
short_channel_id,
node_id_1: PublicKey::from_secret_key(&secp_ctx, &node_1_key),
chain_hash: genesis_hash,
short_channel_id,
node_id_1: PublicKey::from_secret_key(&secp_ctx, &node_1_key),
@@
-1747,11
+1748,12
@@
mod tests {
}
fn path_hop(pubkey: PublicKey, short_channel_id: u64, fee_msat: u64) -> RouteHop {
}
fn path_hop(pubkey: PublicKey, short_channel_id: u64, fee_msat: u64) -> RouteHop {
+ let config = UserConfig::default();
RouteHop {
pubkey,
RouteHop {
pubkey,
- node_features: channelmanager::provided_node_features(),
+ node_features: channelmanager::provided_node_features(
&config
),
short_channel_id,
short_channel_id,
- channel_features: channelmanager::provided_channel_features(),
+ channel_features: channelmanager::provided_channel_features(
&config
),
fee_msat,
cltv_expiry_delta: 18,
}
fee_msat,
cltv_expiry_delta: 18,
}