Skip to content

Commit

Permalink
feat: upgrade to monero 0.18
Browse files Browse the repository at this point in the history
  • Loading branch information
delta1 committed Aug 9, 2022
1 parent 74e7c1e commit 8fbe396
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
4 changes: 2 additions & 2 deletions monero-harness/src/image.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ impl Image for Monerod {
type EntryPoint = str;

fn descriptor(&self) -> String {
"rinocommunity/monero:v0.17.2.0".to_owned()
"rinocommunity/monero:v0.18.0.0".to_owned()
}

fn wait_until_ready<D: Docker>(&self, container: &Container<'_, D, Self>) {
Expand Down Expand Up @@ -70,7 +70,7 @@ impl Image for MoneroWalletRpc {
type EntryPoint = str;

fn descriptor(&self) -> String {
"rinocommunity/monero:v0.17.2.0".to_owned()
"rinocommunity/monero:v0.18.0.0".to_owned()
}

fn wait_until_ready<D: Docker>(&self, container: &Container<'_, D, Self>) {
Expand Down
5 changes: 3 additions & 2 deletions monero-harness/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,12 @@ impl<'c> Monero {
let miner_wallet = self.wallet("miner")?;
let miner_address = miner_wallet.address().await?.address;

// generate the first 70 as bulk
// generate the first 120 as bulk
let amount_of_blocks = 120;
let monerod = &self.monerod;
let res = monerod
.client()
.generateblocks(70, miner_address.clone())
.generateblocks(amount_of_blocks, miner_address.clone())
.await?;
tracing::info!("Generated {:?} blocks", res.blocks.len());
miner_wallet.refresh().await?;
Expand Down
13 changes: 8 additions & 5 deletions swap/src/monero/wallet_rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,21 @@ use tokio_util::io::StreamReader;
#[cfg(not(any(target_os = "macos", target_os = "linux", target_os = "windows")))]
compile_error!("unsupported operating system");

#[cfg(target_os = "macos")]
const DOWNLOAD_URL: &str = "http://downloads.getmonero.org/cli/monero-mac-x64-v0.17.3.0.tar.bz2";
#[cfg(all(target_os = "macos", target_arch = "x86_64"))]
const DOWNLOAD_URL: &str = "http://downloads.getmonero.org/cli/monero-mac-x64-v0.18.0.0.tar.bz2";

#[cfg(all(target_os = "macos", target_arch = "arm"))]
const DOWNLOAD_URL: &str = "https://downloads.getmonero.org/cli/monero-mac-armv8-v0.18.0.0.tar.bz2";

#[cfg(all(target_os = "linux", target_arch = "x86_64"))]
const DOWNLOAD_URL: &str = "https://downloads.getmonero.org/cli/monero-linux-x64-v0.17.3.0.tar.bz2";
const DOWNLOAD_URL: &str = "https://downloads.getmonero.org/cli/monero-linux-x64-v0.18.0.0.tar.bz2";

#[cfg(all(target_os = "linux", target_arch = "arm"))]
const DOWNLOAD_URL: &str =
"https://downloads.getmonero.org/cli/monero-linux-armv7-v0.17.3.0.tar.bz2";
"https://downloads.getmonero.org/cli/monero-linux-armv7-v0.18.0.0.tar.bz2";

#[cfg(target_os = "windows")]
const DOWNLOAD_URL: &str = "https://downloads.getmonero.org/cli/monero-win-x64-v0.17.3.0.zip";
const DOWNLOAD_URL: &str = "https://downloads.getmonero.org/cli/monero-win-x64-v0.18.0.0.zip";

#[cfg(any(target_os = "macos", target_os = "linux"))]
const PACKED_FILE: &str = "monero-wallet-rpc";
Expand Down

0 comments on commit 8fbe396

Please sign in to comment.