Skip to content

Commit

Permalink
f Account for DefaultRouter taking an EntropySource
Browse files Browse the repository at this point in the history
  • Loading branch information
tnull committed Feb 7, 2024
1 parent a79979b commit 4b1e4d5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ fn build_with_store_internal<K: KVStore + Sync + Send + 'static>(
let router = Arc::new(DefaultRouter::new(
Arc::clone(&network_graph),
Arc::clone(&logger),
keys_manager.get_secure_random_bytes(),
Arc::clone(&keys_manager),
Arc::clone(&scorer),
scoring_fee_params,
));
Expand Down
11 changes: 4 additions & 7 deletions src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use lightning::ln::ChannelId;
use lightning::routing::gossip;
use lightning::routing::router::DefaultRouter;
use lightning::routing::scoring::{ProbabilisticScorer, ProbabilisticScoringFeeParameters};
use lightning::sign::{EntropySource, InMemorySigner};
use lightning::sign::InMemorySigner;
use lightning::util::config::ChannelConfig as LdkChannelConfig;
use lightning::util::config::MaxDustHTLCExposure as LdkMaxDustHTLCExposure;
use lightning::util::ser::{Readable, Writeable, Writer};
Expand Down Expand Up @@ -74,6 +74,7 @@ pub(crate) type KeysManager = crate::wallet::WalletKeysManager<
pub(crate) type Router = DefaultRouter<
Arc<NetworkGraph>,
Arc<FilesystemLogger>,
Arc<KeysManager>,
Arc<Mutex<Scorer>>,
ProbabilisticScoringFeeParameters,
Scorer,
Expand Down Expand Up @@ -118,12 +119,8 @@ impl lightning::onion_message::messenger::MessageRouter for FakeMessageRouter {
) -> Result<lightning::onion_message::messenger::OnionMessagePath, ()> {
unimplemented!()
}
fn create_blinded_paths<
ES: EntropySource + ?Sized,
T: secp256k1::Signing + secp256k1::Verification,
>(
&self, _recipient: PublicKey, _peers: Vec<PublicKey>, _entropy_source: &ES,
_secp_ctx: &Secp256k1<T>,
fn create_blinded_paths<T: secp256k1::Signing + secp256k1::Verification>(
&self, _recipient: PublicKey, _peers: Vec<PublicKey>, _secp_ctx: &Secp256k1<T>,
) -> Result<Vec<BlindedPath>, ()> {
unreachable!()
}
Expand Down

0 comments on commit 4b1e4d5

Please sign in to comment.