Skip to content

Commit

Permalink
Tweak how the Monero node is run for the processor tests
Browse files Browse the repository at this point in the history
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`).
  • Loading branch information
kayabaNerve committed Oct 23, 2023
1 parent 08180cc commit 7c10873
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions processor/src/tests/literal/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand All @@ -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
}
Expand All @@ -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;
}
Expand Down

0 comments on commit 7c10873

Please sign in to comment.