diff --git a/Cargo.lock b/Cargo.lock index f0404068d..fd89ca705 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1111,7 +1111,7 @@ dependencies = [ [[package]] name = "cuprated" -version = "0.0.3" +version = "0.0.4" dependencies = [ "anyhow", "async-trait", diff --git a/binaries/cuprated/Cargo.toml b/binaries/cuprated/Cargo.toml index 115af7d61..cd5f8145b 100644 --- a/binaries/cuprated/Cargo.toml +++ b/binaries/cuprated/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cuprated" -version = "0.0.3" +version = "0.0.4" edition = "2021" description = "The Cuprate Rust Monero node." license = "AGPL-3.0-only" diff --git a/binaries/cuprated/src/constants.rs b/binaries/cuprated/src/constants.rs index 2144b7c82..29686bfbe 100644 --- a/binaries/cuprated/src/constants.rs +++ b/binaries/cuprated/src/constants.rs @@ -43,15 +43,15 @@ mod test { fn version() { let semantic_version = format!("{MAJOR_VERSION}.{MINOR_VERSION}.{PATCH_VERSION}"); assert_eq!(VERSION, VERSION); - assert_eq!(VERSION, "0.0.3"); + assert_eq!(VERSION, "0.0.4"); } #[test] fn version_build() { if cfg!(debug_assertions) { - assert_eq!(VERSION_BUILD, "0.0.3-debug"); + assert_eq!(VERSION_BUILD, "0.0.4-debug"); } else { - assert_eq!(VERSION_BUILD, "0.0.3-release"); + assert_eq!(VERSION_BUILD, "0.0.4-release"); } } } diff --git a/binaries/cuprated/src/killswitch.rs b/binaries/cuprated/src/killswitch.rs index e8f77e7b5..d76c005f2 100644 --- a/binaries/cuprated/src/killswitch.rs +++ b/binaries/cuprated/src/killswitch.rs @@ -32,8 +32,8 @@ const _: () = { /// The killswitch activates if the current timestamp is ahead of this timestamp. /// -/// Wed Jun 11 12:00:00 AM UTC 2025 -pub const KILLSWITCH_ACTIVATION_TIMESTAMP: u64 = 1749600000; +/// Wed Jul 23 12:00:00 AM UTC 2025 +pub const KILLSWITCH_ACTIVATION_TIMESTAMP: u64 = 1753228800; /// Check if the system clock is past a certain timestamp, /// if so, exit the entire program. @@ -44,8 +44,8 @@ fn killswitch() { /// sanity checking the system's clock to make /// sure it is not overly behind. /// - /// Tue May 6 04:46:40 PM UTC 2025 - const SYSTEM_CLOCK_SANITY_TIMESTAMP: u64 = 1746550000; + /// Wed Jun 4 12:36:45 PM UTC 2025 + const SYSTEM_CLOCK_SANITY_TIMESTAMP: u64 = 1749040605; let current_ts = current_unix_timestamp(); diff --git a/books/user/book.toml b/books/user/book.toml index 828c4c9f9..49d766c9d 100644 --- a/books/user/book.toml +++ b/books/user/book.toml @@ -3,7 +3,7 @@ authors = ["hinto-janai"] language = "en" multilingual = false src = "src" -title = "Cuprate User Book - v0.0.3" +title = "Cuprate User Book - v0.0.4" git-repository-url = "https://github.com/Cuprate/cuprate/books/user" [output.html] diff --git a/books/user/src/getting-started/download.md b/books/user/src/getting-started/download.md index 088933c23..8b0cf016c 100644 --- a/books/user/src/getting-started/download.md +++ b/books/user/src/getting-started/download.md @@ -3,10 +3,10 @@ Cuprate offers pre-built binaries for `cuprated` for the platforms listed in [`P | Platform | Download | |------------------------------|----------| -| Windows x86_64 | -| macOS x86_64 | -| macOS ARM64 | -| Linux x86_64 (glibc >= 2.36) | -| Linux ARM64 (glibc >= 2.36) | +| Windows x86_64 | +| macOS x86_64 | +| macOS ARM64 | +| Linux x86_64 (glibc >= 2.36) | +| Linux ARM64 (glibc >= 2.36) | All release files are archived and also available at . diff --git a/consensus/src/block/batch_prepare.rs b/consensus/src/block/batch_prepare.rs index 57515afde..81a7f62e6 100644 --- a/consensus/src/block/batch_prepare.rs +++ b/consensus/src/block/batch_prepare.rs @@ -177,7 +177,7 @@ pub async fn batch_prepare_main_chain_blocks( .into_par_iter() .zip(difficulties) .zip(txs) - .map(|((block, difficultly), txs)| { + .map(|((block, difficulty), txs)| { // Calculate the PoW for the block. let height = block.height; let block = PreparedBlock::new_prepped( @@ -186,7 +186,7 @@ pub async fn batch_prepare_main_chain_blocks( )?; // Check the PoW - check_block_pow(&block.pow_hash, difficultly).map_err(ConsensusError::Block)?; + check_block_pow(&block.pow_hash, difficulty).map_err(ConsensusError::Block)?; let mut txs = start_tx_verification() .append_txs(txs) diff --git a/misc/changelogs/cuprated/0.0.4.md b/misc/changelogs/cuprated/0.0.4.md new file mode 100644 index 000000000..c5e5a751b --- /dev/null +++ b/misc/changelogs/cuprated/0.0.4.md @@ -0,0 +1,43 @@ +# cuprated 0.0.4 Molybdenite (2025-06-04) +Cuprate is an alternative Monero node implementation. To get started, see: . + +This release contains the initial integration of the restricted (`0.0.0.0:18089`) and unrestricted (`127.0.0.1:18081`) RPC servers. The following methods/endpoints are enabled: + +- `get_block` +- `get_block_count` +- `get_last_block_header` +- `get_block_header_by_hash` +- `get_block_header_by_height` +- `get_block_headers_range` +- `on_get_block_hash` +- `/get_height` + +See the [updated configuration](https://user.cuprate.org/config.html) and RPC sections in the user book for more information: . + +## Changes +- Abstract TCP methods under the `Transport` trait ([#446](https://github.com/Cuprate/cuprate/pull/446)) +- Add fuzzing and fix found issues ([#464](https://github.com/Cuprate/cuprate/pull/464)) +- Change release asset naming scheme ([#484](https://github.com/Cuprate/cuprate/pull/484)) +- Fix `randomx-rs` builds on certain distros ([#487](https://github.com/Cuprate/cuprate/pull/487), [#493](https://github.com/Cuprate/cuprate/pull/493)) +- Update `fast-sync` to height `3425792` ([#490](https://github.com/Cuprate/cuprate/pull/490)) +- Initial RPC server integration ([#183](https://github.com/Cuprate/cuprate/issues/183), [#244](https://github.com/Cuprate/cuprate/issues/244), [#423](https://github.com/Cuprate/cuprate/pull/423), [#450](https://github.com/Cuprate/cuprate/pull/450)) + +## Downloads +For convenience, the following binaries are produced using GitHub CI in a non-reproducible way; it is highly recommended to build `cuprated` from source instead, see . + +| OS | Architecture | Download | +|---------|--------------|----------| +| Windows | 64 | +| macOS | x64 | +| macOS | ARM64 | +| Linux | x64 | +| Linux | ARM64 | + +## Contributors +Thank you to everyone who directly contributed to this release: + +- @Boog900 +- @hinto-janai +- @SyntheticBird45 + +There are other contributors that are not listed here, thank you to them as well. diff --git a/misc/changelogs/cuprated/latest.md b/misc/changelogs/cuprated/latest.md index b71a24599..efd3c733a 120000 --- a/misc/changelogs/cuprated/latest.md +++ b/misc/changelogs/cuprated/latest.md @@ -1 +1 @@ -0.0.3.md \ No newline at end of file +0.0.4.md \ No newline at end of file