From 039ef6661a9645d1e09e968ac72c21d97a0e926e Mon Sep 17 00:00:00 2001 From: Chris O'Neil Date: Tue, 14 Jan 2025 15:46:22 +0000 Subject: [PATCH 1/3] docs: provide changelog for `2024.12.1.9` hotfix This also retrospectively applies changelogs for the last two hotfix releases, because somehow these were missed. --- CHANGELOG.md | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6aed4810fa..01c99e92fd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,44 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 *When editing this file, please respect a line length of 100.* +## 2025-01-14 + +### Client + +#### Fixed + +- Remove `uploaded` timestamp from archive metadata to prevent unnecessary re-uploads when archive + contents remain unchanged. This ensures we do not charge when uploading the same file more than + once on `ant file upload`. +- Switch from `HashMap` to `BTreeMap` for archive to ensure deterministic serialization, which also + prevents unnecessary re-uploads. As above, this facilitates the fix for the duplicate payment + issue. + +## 2025-01-09 + +### Network + +#### Changed + +- Network discovery no longer queries the farthest full buckets. This significantly reduces the + number of messages as the network grows, resulting in fewer open connections and reduced resource + usage. + +## 2025-01-06 + +### Network + +#### Changed + +- Memory and CPU metrics use more precise `f64` measurements + +### Client + +#### Fixed + +- Apply a timeout for EVM transactions. This fixes an issue where some uploads would freeze indefinitely. +- The `ant` CLI was not selecting its network consistently from the environment variable. + ## 2024-12-21 ### Network From d32958e656538709ed7f685eeab1c363ab7b908c Mon Sep 17 00:00:00 2001 From: Chris O'Neil Date: Tue, 14 Jan 2025 15:59:07 +0000 Subject: [PATCH 2/3] chore(release): stable release 2024.12.1.9 ================== Crate Versions ================== ant-bootstrap: 0.1.3 ant-build-info: 0.1.23 ant-cli: 0.3.4 ant-evm: 0.1.8 ant-logging: 0.2.44 ant-metrics: 0.1.24 ant-networking: 0.3.3 ant-node: 0.3.4 ant-node-manager: 0.11.7 ant-node-rpc-client: 0.6.41 ant-protocol: 0.3.3 ant-registers: 0.4.7 ant-service-management: 0.4.7 ant-token-supplies: 0.1.62 autonomi: 0.3.4 evmlib: 0.1.8 evm-testnet: 0.1.8 nat-detection: 0.2.15 node-launchpad: 0.5.3 test-utils: 0.4.15 =================== Binary Versions =================== ant: 0.3.4 antctl: 0.11.7 antctld: 0.11.7 antnode: 0.3.4 antnode_rpc_client: 0.6.41 nat-detection: 0.2.15 node-launchpad: 0.5.3 --- Cargo.lock | 8 ++++---- ant-build-info/src/release_info.rs | 2 +- ant-cli/Cargo.toml | 6 +++--- ant-node-rpc-client/Cargo.toml | 4 ++-- ant-node/Cargo.toml | 4 ++-- autonomi/Cargo.toml | 2 +- release-cycle-info | 2 +- 7 files changed, 14 insertions(+), 14 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index c5e8fd153b..65f46ad601 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -805,7 +805,7 @@ dependencies = [ [[package]] name = "ant-cli" -version = "0.3.3" +version = "0.3.4" dependencies = [ "ant-bootstrap", "ant-build-info", @@ -938,7 +938,7 @@ dependencies = [ [[package]] name = "ant-node" -version = "0.3.3" +version = "0.3.4" dependencies = [ "ant-bootstrap", "ant-build-info", @@ -1039,7 +1039,7 @@ dependencies = [ [[package]] name = "ant-node-rpc-client" -version = "0.6.40" +version = "0.6.41" dependencies = [ "ant-build-info", "ant-logging", @@ -1568,7 +1568,7 @@ checksum = "ace50bade8e6234aa140d9a2f552bbee1db4d353f69b8217bc503490fc1a9f26" [[package]] name = "autonomi" -version = "0.3.3" +version = "0.3.4" dependencies = [ "alloy", "ant-bootstrap", diff --git a/ant-build-info/src/release_info.rs b/ant-build-info/src/release_info.rs index c87bb79fe8..33afb04700 100644 --- a/ant-build-info/src/release_info.rs +++ b/ant-build-info/src/release_info.rs @@ -1,4 +1,4 @@ pub const RELEASE_YEAR: &str = "2024"; pub const RELEASE_MONTH: &str = "12"; pub const RELEASE_CYCLE: &str = "1"; -pub const RELEASE_CYCLE_COUNTER: &str = "8"; +pub const RELEASE_CYCLE_COUNTER: &str = "9"; diff --git a/ant-cli/Cargo.toml b/ant-cli/Cargo.toml index 09930fc2c6..b4c8b3ec3d 100644 --- a/ant-cli/Cargo.toml +++ b/ant-cli/Cargo.toml @@ -3,7 +3,7 @@ authors = ["MaidSafe Developers "] name = "ant-cli" description = "CLI client for the Autonomi network" license = "GPL-3.0" -version = "0.3.3" +version = "0.3.4" edition = "2021" homepage = "https://maidsafe.net" readme = "README.md" @@ -27,7 +27,7 @@ ant-bootstrap = { path = "../ant-bootstrap", version = "0.1.3" } ant-build-info = { path = "../ant-build-info", version = "0.1.23" } ant-logging = { path = "../ant-logging", version = "0.2.44" } ant-protocol = { path = "../ant-protocol", version = "0.3.3" } -autonomi = { path = "../autonomi", version = "0.3.3", features = [ "loud" ] } +autonomi = { path = "../autonomi", version = "0.3.4", features = [ "loud" ] } clap = { version = "4.2.1", features = ["derive"] } color-eyre = "0.6.3" const-hex = "1.13.1" @@ -54,7 +54,7 @@ tracing = { version = "~0.1.26" } walkdir = "2.5.0" [dev-dependencies] -autonomi = { path = "../autonomi", version = "0.3.3" } +autonomi = { path = "../autonomi", version = "0.3.4" } criterion = "0.5.1" eyre = "0.6.8" rand = { version = "~0.8.5", features = ["small_rng"] } diff --git a/ant-node-rpc-client/Cargo.toml b/ant-node-rpc-client/Cargo.toml index 9c94237625..44ab4f41a0 100644 --- a/ant-node-rpc-client/Cargo.toml +++ b/ant-node-rpc-client/Cargo.toml @@ -7,7 +7,7 @@ license = "GPL-3.0" name = "ant-node-rpc-client" readme = "README.md" repository = "https://github.com/maidsafe/autonomi" -version = "0.6.40" +version = "0.6.41" [[bin]] name = "antnode_rpc_client" @@ -20,7 +20,7 @@ nightly = [] ant-build-info = { path = "../ant-build-info", version = "0.1.23" } ant-logging = { path = "../ant-logging", version = "0.2.44" } ant-protocol = { path = "../ant-protocol", version = "0.3.3", features=["rpc"] } -ant-node = { path = "../ant-node", version = "0.3.3" } +ant-node = { path = "../ant-node", version = "0.3.4" } ant-service-management = { path = "../ant-service-management", version = "0.4.7" } async-trait = "0.1" bls = { package = "blsttc", version = "8.0.1" } diff --git a/ant-node/Cargo.toml b/ant-node/Cargo.toml index 37203c57fd..4a3dd80358 100644 --- a/ant-node/Cargo.toml +++ b/ant-node/Cargo.toml @@ -2,7 +2,7 @@ authors = ["MaidSafe Developers "] description = "The Autonomi node binary" name = "ant-node" -version = "0.3.3" +version = "0.3.4" edition = "2021" license = "GPL-3.0" homepage = "https://maidsafe.net" @@ -83,7 +83,7 @@ xor_name = "5.0.0" ant-protocol = { path = "../ant-protocol", version = "0.3.3", features = ["rpc"] } assert_fs = "1.0.0" evmlib = { path = "../evmlib", version = "0.1.8" } -autonomi = { path = "../autonomi", version = "0.3.3" } +autonomi = { path = "../autonomi", version = "0.3.4" } reqwest = { version = "0.12.2", default-features = false, features = [ "rustls-tls-manual-roots", ] } diff --git a/autonomi/Cargo.toml b/autonomi/Cargo.toml index e4f9666014..3201003dc0 100644 --- a/autonomi/Cargo.toml +++ b/autonomi/Cargo.toml @@ -3,7 +3,7 @@ authors = ["MaidSafe Developers "] description = "Autonomi client API" name = "autonomi" license = "GPL-3.0" -version = "0.3.3" +version = "0.3.4" edition = "2021" homepage = "https://maidsafe.net" readme = "README.md" diff --git a/release-cycle-info b/release-cycle-info index 1ec5651cc4..3f88de7ba3 100644 --- a/release-cycle-info +++ b/release-cycle-info @@ -15,4 +15,4 @@ release-year: 2024 release-month: 12 release-cycle: 1 -release-cycle-counter: 8 +release-cycle-counter: 9 From 9ae0dc36f148ad7733c633a09b62565e0b67d312 Mon Sep 17 00:00:00 2001 From: Chris O'Neil Date: Tue, 14 Jan 2025 16:38:53 +0000 Subject: [PATCH 3/3] fix: restart node with correct args It looked like some kind of mass search and replace has malformed the part of this workflow where a node gets restarted. --- .github/workflows/memcheck.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/memcheck.yml b/.github/workflows/memcheck.yml index 480ca3624d..1b425b698d 100644 --- a/.github/workflows/memcheck.yml +++ b/.github/workflows/memcheck.yml @@ -114,7 +114,11 @@ jobs: - name: Start the restart node again run: | - ./target/release/antnode --root-dir $RESTART_TEST_NODE_DATA_PATH --log-output-dest $RESTART_TEST_NODE_DATA_PATH --local --rewards-address "0x03B770D9cD32077cC0bF330c13C114a87643B124" & + ./target/release/antnode \ + --root-dir $RESTART_TEST_NODE_DATA_PATH \ + --log-output-dest $RESTART_TEST_NODE_DATA_PATH \ + --local \ + --rewards-address "0x03B770D9cD32077cC0bF330c13C114a87643B124" & sleep 10 env: ANT_LOG: "all"