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 10, 2022
1 parent 74e7c1e commit 4ad71ab
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 10 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Changed

- Update from Monero v0.17.2.0 to Monero v0.18.0.0
- Change Monero nodes to [Rino tool nodes](https://community.rino.io/nodes.html)
- Update from monero v17.2.0 to monero v17.3.0
- Always write logs as JSON to files
- Change to UTC time for log messages, due to a bug causing no logging at all to be printed (linux/macos), and an [unsoundness issue](https://docs.rs/tracing-subscriber/latest/tracing_subscriber/fmt/time/struct.LocalTime.html) with local time in [the time crate](https://github.com/time-rs/time/issues/293#issuecomment-748151025)
- Fix potential integer overflow in ASB when calculating maximum Bitcoin amount for Monero balance
Expand Down
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 4ad71ab

Please sign in to comment.