From f4e2da2767ee674e0d81cea829f2869bac2bf75a Mon Sep 17 00:00:00 2001 From: Luke Parker Date: Tue, 14 Mar 2023 01:54:08 -0400 Subject: [PATCH] Move where we check the Monero node's protocol The genesis block has a version of 1, so immediately checking (before new blocks are added) will cause failures. --- coins/monero/tests/runner.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/coins/monero/tests/runner.rs b/coins/monero/tests/runner.rs index 3d061348..0f28cb30 100644 --- a/coins/monero/tests/runner.rs +++ b/coins/monero/tests/runner.rs @@ -76,8 +76,6 @@ pub async fn get_miner_tx_output(rpc: &Rpc, view: &ViewPair) -> SpendableOutput pub async fn rpc() -> Rpc { let rpc = Rpc::new("http://127.0.0.1:18081".to_string()).unwrap(); - // Make sure we recognize the protocol - rpc.get_protocol().await.unwrap(); // Only run once if rpc.get_height().await.unwrap() != 1 { @@ -94,6 +92,9 @@ pub async fn rpc() -> Rpc { // Mine 40 blocks to ensure decoy availability rpc.generate_blocks(&addr, 40).await.unwrap(); + // Make sure we recognize the protocol + rpc.get_protocol().await.unwrap(); + rpc }