Skip to content

Commit 2210e23

Browse files
committed
WIP
1 parent dd4f876 commit 2210e23

File tree

3 files changed

+15
-19
lines changed

3 files changed

+15
-19
lines changed

Cargo.toml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -158,17 +158,17 @@ harness = false
158158
#lightning-macros = { git = "https://github.com/lightningdevkit/rust-lightning", branch = "main" }
159159

160160
[patch."https://github.com/lightningdevkit/rust-lightning"]
161-
lightning = { git = "https://github.com/tnull/rust-lightning", rev = "fe77246afe56c80ed08221a50dfd487f2a811c9b" }
162-
lightning-types = { git = "https://github.com/tnull/rust-lightning", rev = "fe77246afe56c80ed08221a50dfd487f2a811c9b" }
163-
lightning-invoice = { git = "https://github.com/tnull/rust-lightning", rev = "fe77246afe56c80ed08221a50dfd487f2a811c9b" }
164-
lightning-net-tokio = { git = "https://github.com/tnull/rust-lightning", rev = "fe77246afe56c80ed08221a50dfd487f2a811c9b" }
165-
lightning-persister = { git = "https://github.com/tnull/rust-lightning", rev = "fe77246afe56c80ed08221a50dfd487f2a811c9b" }
166-
lightning-background-processor = { git = "https://github.com/tnull/rust-lightning", rev = "fe77246afe56c80ed08221a50dfd487f2a811c9b" }
167-
lightning-rapid-gossip-sync = { git = "https://github.com/tnull/rust-lightning", rev = "fe77246afe56c80ed08221a50dfd487f2a811c9b" }
168-
lightning-block-sync = { git = "https://github.com/tnull/rust-lightning", rev = "fe77246afe56c80ed08221a50dfd487f2a811c9b" }
169-
lightning-transaction-sync = { git = "https://github.com/tnull/rust-lightning", rev = "fe77246afe56c80ed08221a50dfd487f2a811c9b" }
170-
lightning-liquidity = { git = "https://github.com/tnull/rust-lightning", rev = "fe77246afe56c80ed08221a50dfd487f2a811c9b" }
171-
lightning-macros = { git = "https://github.com/tnull/rust-lightning", rev = "fe77246afe56c80ed08221a50dfd487f2a811c9b" }
161+
lightning = { git = "https://github.com/tnull/rust-lightning", rev = "071aa74424bbb15079a7daa75d37ecaf22cca4f1" }
162+
lightning-types = { git = "https://github.com/tnull/rust-lightning", rev = "071aa74424bbb15079a7daa75d37ecaf22cca4f1" }
163+
lightning-invoice = { git = "https://github.com/tnull/rust-lightning", rev = "071aa74424bbb15079a7daa75d37ecaf22cca4f1" }
164+
lightning-net-tokio = { git = "https://github.com/tnull/rust-lightning", rev = "071aa74424bbb15079a7daa75d37ecaf22cca4f1" }
165+
lightning-persister = { git = "https://github.com/tnull/rust-lightning", rev = "071aa74424bbb15079a7daa75d37ecaf22cca4f1" }
166+
lightning-background-processor = { git = "https://github.com/tnull/rust-lightning", rev = "071aa74424bbb15079a7daa75d37ecaf22cca4f1" }
167+
lightning-rapid-gossip-sync = { git = "https://github.com/tnull/rust-lightning", rev = "071aa74424bbb15079a7daa75d37ecaf22cca4f1" }
168+
lightning-block-sync = { git = "https://github.com/tnull/rust-lightning", rev = "071aa74424bbb15079a7daa75d37ecaf22cca4f1" }
169+
lightning-transaction-sync = { git = "https://github.com/tnull/rust-lightning", rev = "071aa74424bbb15079a7daa75d37ecaf22cca4f1" }
170+
lightning-liquidity = { git = "https://github.com/tnull/rust-lightning", rev = "071aa74424bbb15079a7daa75d37ecaf22cca4f1" }
171+
lightning-macros = { git = "https://github.com/tnull/rust-lightning", rev = "071aa74424bbb15079a7daa75d37ecaf22cca4f1" }
172172

173173
#vss-client-ng = { path = "../vss-client" }
174174
#vss-client-ng = { git = "https://github.com/lightningdevkit/vss-client", branch = "main" }

src/builder.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1632,11 +1632,7 @@ fn build_with_store_internal(
16321632
);
16331633
let inner_message_router =
16341634
InnerMessageRouter::new(Arc::clone(&network_graph), Arc::clone(&keys_manager));
1635-
let router = Arc::new(LSPS2BOLT12Router::new(
1636-
inner_router,
1637-
inner_message_router,
1638-
Arc::clone(&keys_manager),
1639-
));
1635+
let router = Arc::new(LSPS2BOLT12Router::new(inner_router, Arc::clone(&keys_manager)));
16401636

16411637
let mut user_config = default_user_config(&config);
16421638

@@ -1664,7 +1660,7 @@ fn build_with_store_internal(
16641660
}
16651661
}
16661662

1667-
let message_router = Arc::clone(&router);
1663+
let message_router = Arc::new(inner_message_router);
16681664

16691665
// Initialize the ChannelManager
16701666
let channel_manager = {

src/types.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ pub(crate) type InnerRouter = DefaultRouter<
292292
ProbabilisticScoringFeeParameters,
293293
Scorer,
294294
>;
295-
pub(crate) type Router = LSPS2BOLT12Router<InnerRouter, InnerMessageRouter, Arc<KeysManager>>;
295+
pub(crate) type Router = LSPS2BOLT12Router<InnerRouter, Arc<KeysManager>>;
296296
pub(crate) type Scorer = CombinedScorer<Arc<Graph>, Arc<Logger>>;
297297

298298
pub(crate) type Graph = gossip::NetworkGraph<Arc<Logger>>;
@@ -331,7 +331,7 @@ pub(crate) type InnerMessageRouter = lightning::onion_message::messenger::Defaul
331331
Arc<Logger>,
332332
Arc<KeysManager>,
333333
>;
334-
pub(crate) type MessageRouter = Router;
334+
pub(crate) type MessageRouter = InnerMessageRouter;
335335

336336
pub(crate) type Sweeper = OutputSweeper<
337337
Arc<Broadcaster>,

0 commit comments

Comments
 (0)