From 650ba0d44594ebb1d398a34e887635706b276061 Mon Sep 17 00:00:00 2001 From: "hinto.janai" Date: Wed, 7 May 2025 19:20:37 -0400 Subject: [PATCH 1/6] apply --- Cargo.lock | 2 +- binaries/cuprated/Cargo.toml | 2 +- binaries/cuprated/src/constants.rs | 6 ++--- binaries/cuprated/src/killswitch.rs | 8 +++--- books/user/book.toml | 2 +- books/user/src/getting-started/download.md | 10 ++++---- misc/changelogs/cuprated/0.0.4.md | 29 ++++++++++++++++++++++ misc/changelogs/cuprated/latest.md | 2 +- 8 files changed, 45 insertions(+), 16 deletions(-) create mode 100644 misc/changelogs/cuprated/0.0.4.md diff --git a/Cargo.lock b/Cargo.lock index 80dad5c2f..1df9618db 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1073,7 +1073,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 343ab2141..54b14ef76 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..6bd584605 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 9 12:00:00 AM UTC 2025 +pub const KILLSWITCH_ACTIVATION_TIMESTAMP: u64 = 1752019200; /// 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 Jul 2 11:46:40 PM UTC 2025 + const SYSTEM_CLOCK_SANITY_TIMESTAMP: u64 = 1751500000; 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..e83c1ea17 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/misc/changelogs/cuprated/0.0.4.md b/misc/changelogs/cuprated/0.0.4.md new file mode 100644 index 000000000..15b597f21 --- /dev/null +++ b/misc/changelogs/cuprated/0.0.4.md @@ -0,0 +1,29 @@ +# cuprated 0.0.4 Molybdenite (2025-06-04) +Cuprate is an alternative Monero node implementation. + +This is the third release of the Cuprate node, `cuprated`. + +To get started, see: . + +For an FAQ on Cuprate, see: . + +## Changes +- TODO + +## 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 | +|---------|--------------|----------| +| Linux | x64 | +| Linux | ARM64 | +| macOS | x64 | +| macOS | ARM64 | +| Windows | x64 | + +## Contributors +Thank you to everyone who directly contributed to this release: + +- TODO + +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 From e8520d97e2512250d56a9ca2dfe8b9e9dac7e763 Mon Sep 17 00:00:00 2001 From: "hinto.janai" Date: Wed, 28 May 2025 16:09:53 -0400 Subject: [PATCH 2/6] update --- binaries/cuprated/src/killswitch.rs | 4 ++-- books/user/src/getting-started/download.md | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/binaries/cuprated/src/killswitch.rs b/binaries/cuprated/src/killswitch.rs index 6bd584605..e662af6cc 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 Jul 9 12:00:00 AM UTC 2025 -pub const KILLSWITCH_ACTIVATION_TIMESTAMP: u64 = 1752019200; +/// 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. diff --git a/books/user/src/getting-started/download.md b/books/user/src/getting-started/download.md index e83c1ea17..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 . From fbdef71cc3f46c53034ddac170dae1edf00b8295 Mon Sep 17 00:00:00 2001 From: "hinto.janai" Date: Fri, 30 May 2025 20:13:07 -0400 Subject: [PATCH 3/6] update --- misc/changelogs/cuprated/0.0.4.md | 35 +++++++++++++++++++++---------- 1 file changed, 24 insertions(+), 11 deletions(-) diff --git a/misc/changelogs/cuprated/0.0.4.md b/misc/changelogs/cuprated/0.0.4.md index 15b597f21..2c43dfac7 100644 --- a/misc/changelogs/cuprated/0.0.4.md +++ b/misc/changelogs/cuprated/0.0.4.md @@ -1,29 +1,42 @@ # cuprated 0.0.4 Molybdenite (2025-06-04) -Cuprate is an alternative Monero node implementation. +Cuprate is an alternative Monero node implementation. To get started, see: . -This is the third release of the Cuprate node, `cuprated`. +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: -To get started, see: . +- `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` -For an FAQ on Cuprate, see: . +See the [updated configuration](https://user.cuprate.org/config.html) and RPC sections in the user book for more information: . ## Changes -- TODO +- 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)) +- 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 | |---------|--------------|----------| -| Linux | x64 | -| Linux | ARM64 | -| macOS | x64 | -| macOS | ARM64 | -| Windows | x64 | +| Windows | 64 | +| macOS | x64 | +| macOS | ARM64 | +| Linux | x64 | +| Linux | ARM64 | ## Contributors Thank you to everyone who directly contributed to this release: -- TODO +- @Boog900 +- @hinto-janai +- @SyntheticBird45 There are other contributors that are not listed here, thank you to them as well. From 5b719ed7e1b42bedc9e4980d05c2bb3704b882bc Mon Sep 17 00:00:00 2001 From: "hinto.janai" Date: Tue, 3 Jun 2025 15:01:27 -0400 Subject: [PATCH 4/6] fs --- misc/changelogs/cuprated/0.0.4.md | 1 + 1 file changed, 1 insertion(+) diff --git a/misc/changelogs/cuprated/0.0.4.md b/misc/changelogs/cuprated/0.0.4.md index 2c43dfac7..c5e5a751b 100644 --- a/misc/changelogs/cuprated/0.0.4.md +++ b/misc/changelogs/cuprated/0.0.4.md @@ -19,6 +19,7 @@ See the [updated configuration](https://user.cuprate.org/config.html) and RPC se - 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 From fe3d87a2fd35f7177cc227f868d537ee9d246c60 Mon Sep 17 00:00:00 2001 From: "hinto.janai" Date: Tue, 3 Jun 2025 15:06:09 -0400 Subject: [PATCH 5/6] typos -w --- consensus/src/block/batch_prepare.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) From 9e236d5871c2ec9dc9d2edce0031067e43107c33 Mon Sep 17 00:00:00 2001 From: "hinto.janai" Date: Wed, 4 Jun 2025 08:37:31 -0400 Subject: [PATCH 6/6] update --- binaries/cuprated/src/killswitch.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/binaries/cuprated/src/killswitch.rs b/binaries/cuprated/src/killswitch.rs index e662af6cc..d76c005f2 100644 --- a/binaries/cuprated/src/killswitch.rs +++ b/binaries/cuprated/src/killswitch.rs @@ -44,8 +44,8 @@ fn killswitch() { /// sanity checking the system's clock to make /// sure it is not overly behind. /// - /// Wed Jul 2 11:46:40 PM UTC 2025 - const SYSTEM_CLOCK_SANITY_TIMESTAMP: u64 = 1751500000; + /// Wed Jun 4 12:36:45 PM UTC 2025 + const SYSTEM_CLOCK_SANITY_TIMESTAMP: u64 = 1749040605; let current_ts = current_unix_timestamp();