From 4028769602208fa836df04feeb24f5fb998a371f Mon Sep 17 00:00:00 2001 From: Nadav Ivgi Date: Tue, 27 Jan 2026 19:07:16 +0200 Subject: [PATCH 1/2] Add Electrum v4.6.2 --- .github/workflows/test.yml | 2 +- Cargo.toml | 1 + sha256/electrum-4.6.2-SHA256SUM | 1 + src/versions.rs | 7 +++++-- 4 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 sha256/electrum-4.6.2-SHA256SUM diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b89cb58..4b63d57 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -15,7 +15,7 @@ jobs: fail-fast: false matrix: os: [ ubuntu-20.04 ] - feature: [ "4_1_5", "4_5_4" ] + feature: [ "4_1_5", "4_5_4", "4_6_2" ] steps: - run: df -h diff --git a/Cargo.toml b/Cargo.toml index 8a7fa01..d5fd71c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -24,4 +24,5 @@ bitcoin_hashes = "0.10" [features] "4_1_5" = [] "4_5_4" = [] +"4_6_2" = [] diff --git a/sha256/electrum-4.6.2-SHA256SUM b/sha256/electrum-4.6.2-SHA256SUM new file mode 100644 index 0000000..415df7b --- /dev/null +++ b/sha256/electrum-4.6.2-SHA256SUM @@ -0,0 +1 @@ +4453985699e497af47696c69026d21513426c6f483a2c706741afb8031e78d4d \ No newline at end of file diff --git a/src/versions.rs b/src/versions.rs index a8015df..d89ec10 100644 --- a/src/versions.rs +++ b/src/versions.rs @@ -1,6 +1,6 @@ -pub const HAS_FEATURE: bool = cfg!(any(feature = "4_1_5", feature = "4_5_4")); +pub const HAS_FEATURE: bool = cfg!(any(feature = "4_1_5", feature = "4_5_4", feature = "4_6_2")); -#[cfg(not(any(feature = "4_1_5", feature = "4_5_4")))] +#[cfg(not(any(feature = "4_1_5", feature = "4_5_4", feature = "4_6_2")))] pub const VERSION: &str = "N/A"; #[cfg(feature = "4_1_5")] @@ -8,3 +8,6 @@ pub const VERSION: &str = "4.1.5"; #[cfg(feature = "4_5_4")] pub const VERSION: &str = "4.5.4"; + +#[cfg(feature = "4_6_2")] +pub const VERSION: &str = "4.6.2"; From e22e864d1ce2ebbf02f1e3fee1ac846ab54bcafd Mon Sep 17 00:00:00 2001 From: Nadav Ivgi Date: Tue, 27 Jan 2026 19:10:28 +0200 Subject: [PATCH 2/2] Add Electrum v4.7.0 --- .github/workflows/test.yml | 2 +- Cargo.toml | 1 + sha256/electrum-4.7.0-SHA256SUM | 1 + src/versions.rs | 7 +++++-- 4 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 sha256/electrum-4.7.0-SHA256SUM diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4b63d57..f84d781 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -15,7 +15,7 @@ jobs: fail-fast: false matrix: os: [ ubuntu-20.04 ] - feature: [ "4_1_5", "4_5_4", "4_6_2" ] + feature: [ "4_1_5", "4_5_4", "4_6_2", "4_7_0" ] steps: - run: df -h diff --git a/Cargo.toml b/Cargo.toml index d5fd71c..d39114e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -25,4 +25,5 @@ bitcoin_hashes = "0.10" "4_1_5" = [] "4_5_4" = [] "4_6_2" = [] +"4_7_0" = [] diff --git a/sha256/electrum-4.7.0-SHA256SUM b/sha256/electrum-4.7.0-SHA256SUM new file mode 100644 index 0000000..e498d12 --- /dev/null +++ b/sha256/electrum-4.7.0-SHA256SUM @@ -0,0 +1 @@ +c666ef44fb7681ca359ea8db5c5ed4d3de196e049225af074a48a97f0f03abd9 \ No newline at end of file diff --git a/src/versions.rs b/src/versions.rs index d89ec10..4e70881 100644 --- a/src/versions.rs +++ b/src/versions.rs @@ -1,6 +1,6 @@ -pub const HAS_FEATURE: bool = cfg!(any(feature = "4_1_5", feature = "4_5_4", feature = "4_6_2")); +pub const HAS_FEATURE: bool = cfg!(any(feature = "4_1_5", feature = "4_5_4", feature = "4_6_2", feature = "4_7_0")); -#[cfg(not(any(feature = "4_1_5", feature = "4_5_4", feature = "4_6_2")))] +#[cfg(not(any(feature = "4_1_5", feature = "4_5_4", feature = "4_6_2", feature = "4_7_0")))] pub const VERSION: &str = "N/A"; #[cfg(feature = "4_1_5")] @@ -11,3 +11,6 @@ pub const VERSION: &str = "4.5.4"; #[cfg(feature = "4_6_2")] pub const VERSION: &str = "4.6.2"; + +#[cfg(feature = "4_7_0")] +pub const VERSION: &str = "4.7.0";