From 7c10873cd5ae1cacbbe8d4c98bf619de6324cc8d Mon Sep 17 00:00:00 2001
From: Luke Parker <lukeparker5132@gmail.com>
Date: Mon, 23 Oct 2023 07:49:25 -0400
Subject: [PATCH] Tweak how the Monero node is run for the processor tests

Disables the unused zmq RPC.

Removes authentication which seems to be unstable as hell when under load
(see #351).

No longer use Network::Isolated as it's not needed here (the Monero nodes run
with `--offline`).
---
 processor/src/tests/literal/mod.rs | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/processor/src/tests/literal/mod.rs b/processor/src/tests/literal/mod.rs
index 47c8b9131..142d14927 100644
--- a/processor/src/tests/literal/mod.rs
+++ b/processor/src/tests/literal/mod.rs
@@ -86,8 +86,9 @@ mod monero {
       "--regtest".to_string(),
       "--offline".to_string(),
       "--fixed-difficulty=1".to_string(),
+      "--no-zmq".to_string(),
+      "--disable-rpc-ban".to_string(),
       "--rpc-bind-ip=0.0.0.0".to_string(),
-      format!("--rpc-login=serai:seraidex"),
       "--rpc-access-control-origins=*".to_string(),
       "--confirm-external-bind".to_string(),
       "--non-interactive".to_string(),
@@ -100,7 +101,7 @@ mod monero {
     }))
     .set_publish_all_ports(true);
 
-    let mut test = DockerTest::new().with_network(dockertest::Network::Isolated);
+    let mut test = DockerTest::new();
     test.provide_container(composition);
     test
   }
@@ -109,7 +110,7 @@ mod monero {
     let handle = ops.handle("serai-dev-monero").host_port(18081).unwrap();
     // TODO: Replace with a check if the node has booted
     tokio::time::sleep(core::time::Duration::from_secs(20)).await;
-    let monero = Monero::new(format!("http://serai:seraidex@{}:{}", handle.0, handle.1));
+    let monero = Monero::new(format!("http://{}:{}", handle.0, handle.1));
     while monero.get_latest_block_number().await.unwrap() < 150 {
       monero.mine_block().await;
     }