Skip to content

Commit 860915a

Browse files
committed
simln-lib: add htlc Interceptor trait to simulated node
1 parent bb07809 commit 860915a

File tree

2 files changed

+441
-51
lines changed

2 files changed

+441
-51
lines changed

sim-cli/src/parsing.rs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,8 +243,13 @@ pub async fn create_simulation_with_network(
243243

244244
// Setup a simulation graph that will handle propagation of payments through the network
245245
let simulation_graph = Arc::new(Mutex::new(
246-
SimGraph::new(channels.clone(), tasks.clone(), shutdown_trigger.clone())
247-
.map_err(|e| SimulationError::SimulatedNetworkError(format!("{:?}", e)))?,
246+
SimGraph::new(
247+
channels.clone(),
248+
tasks.clone(),
249+
vec![],
250+
shutdown_trigger.clone(),
251+
)
252+
.map_err(|e| SimulationError::SimulatedNetworkError(format!("{:?}", e)))?,
248253
));
249254

250255
let clock = Arc::new(SimulationClock::new(cli.speedup_clock.unwrap_or(1))?);

0 commit comments

Comments
 (0)