Skip to content

Commit

Permalink
f print random params
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinewallace committed Jan 25, 2024
1 parent 800dfcf commit 35f98ee
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lightning/src/ln/blinded_payment_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1215,6 +1215,11 @@ fn do_prop_fees_rng(send_min: bool) {
(std::collections::hash_map::RandomState::new().build_hasher().finish() % MIN_HTLC_LIMIT) as u64;
}

println!("Randomly selected node parameters:");
for (idx, node) in [node_1_cfg, node_2_cfg, node_3_cfg].iter().enumerate() {
println!(" node {}: forwarding_fee_base_msat: {}, forwarding_fee_proportional_millionths: {}, our_htlc_minimum_msat: {}", idx, node.channel_config.forwarding_fee_base_msat, node.channel_config.forwarding_fee_proportional_millionths, node.channel_handshake_config.our_htlc_minimum_msat);
}

let node_chanmgrs = create_node_chanmgrs(5, &node_cfgs, &[None, Some(node_1_cfg), Some(node_2_cfg), Some(node_3_cfg), None]);
let nodes = create_network(5, &node_cfgs, &node_chanmgrs);
create_announced_chan_between_nodes_with_value(&nodes, 0, 1, 1_000_000, 0);
Expand Down

0 comments on commit 35f98ee

Please sign in to comment.