From 531ea2dfe1b37d1abd0cb61becc27506d78ca62a Mon Sep 17 00:00:00 2001 From: Justin Litchfield Date: Sun, 8 Jan 2023 17:49:16 -0600 Subject: [PATCH] Activity probabilities are adjusted --- src/main.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main.rs b/src/main.rs index e533ea2..8a81672 100644 --- a/src/main.rs +++ b/src/main.rs @@ -96,7 +96,7 @@ pub async fn maybe_keysend_random_node() -> Result<(), Error> { let nodes = list_nodes().await.unwrap(); for node in nodes { log::debug!("Node under consideration: {:?}", node); - let probability = 0.05; // 5% probability + let probability = 0.01; // 1% probability if rand::random::() < probability { let amount: u64 = random::() % 700000 + 500; @@ -118,7 +118,7 @@ pub async fn maybe_open_channel() -> Result<(), Error> { let nodes = list_nodes().await.unwrap(); for node in nodes { log::debug!("Perhaps open channel for node: {:?}", node); - let probability = 0.005; // 5% probability + let probability = 0.0003; // 0.03% probability if rand::random::() < probability { @@ -151,9 +151,9 @@ pub async fn spaz_out(config: Arc) -> Result<(), Error> { if config.active == false { // return Ok(()) } - // maybe_keysend_random_channel().await; - // maybe_disconnect_random_peer().await; - // maybe_keysend_random_node().await; + maybe_keysend_random_channel().await; + maybe_disconnect_random_peer().await; + maybe_keysend_random_node().await; maybe_open_channel().await; Ok(()) }