From 5c58b3de4f6f2f2f31ed32c6c451b58f6248d57f Mon Sep 17 00:00:00 2001 From: Leonardo Lima Date: Sat, 4 May 2024 17:00:16 -0300 Subject: [PATCH 1/4] chore: update fmt on `Cargo.toml` --- Cargo.toml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index d44b6c1..7ff7301 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,14 +12,14 @@ categories = ["cryptography::cryptocurrencies", "development-tools::testing"] [dependencies] bitcoind = { version = "0.34.0" } electrum-client = { version = "0.19.0", default-features = false } -log = "0.4" -which = "4.2.5" +log = { version = "0.4" } +which = { version = "4.2.5" } [target.'cfg(not(windows))'.dependencies] nix = { version = "0.25.0" } [dev-dependencies] -env_logger = "0.10" +env_logger = { version = "0.10" } [build-dependencies] bitcoin_hashes = { version = "0.13", optional = true } @@ -37,7 +37,6 @@ legacy = [] # download is not supposed to be used directly only through selecting one of the version feature download = ["bitcoin_hashes", "zip", "minreq"] - esplora_a33e97e1 = ["download"] electrs_0_8_10 = ["download"] electrs_0_9_1 = ["download"] From 2024e72da612ccdfcc8c696f5eca6771926d2b28 Mon Sep 17 00:00:00 2001 From: Leonardo Lima Date: Sat, 4 May 2024 17:11:30 -0300 Subject: [PATCH 2/4] chore(deps): bump `electrum-client` to `0.20.0` and `bitcoind` to `0.36.0` and `bitcoin_hashes` to `0.14.0` --- Cargo.toml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 7ff7301..80d1b1c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,8 +10,8 @@ edition = "2018" categories = ["cryptography::cryptocurrencies", "development-tools::testing"] [dependencies] -bitcoind = { version = "0.34.0" } -electrum-client = { version = "0.19.0", default-features = false } +bitcoind = { version = "0.36.0" } +electrum-client = { version = "0.20.0", default-features = false } log = { version = "0.4" } which = { version = "4.2.5" } @@ -22,7 +22,7 @@ nix = { version = "0.25.0" } env_logger = { version = "0.10" } [build-dependencies] -bitcoin_hashes = { version = "0.13", optional = true } +bitcoin_hashes = { version = "0.14", optional = true } zip = { version = "0.6", default-features = false, optional = true, features = [ "bzip2", "deflate", From 20a0787edc0231ddb46d11eb6c8b401b0a5686d2 Mon Sep 17 00:00:00 2001 From: Leonardo Lima Date: Sat, 4 May 2024 17:23:08 -0300 Subject: [PATCH 3/4] fix: use `compute_txid()` instead of deprecated `txid()` --- src/ext.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ext.rs b/src/ext.rs index 4e275e7..1883910 100644 --- a/src/ext.rs +++ b/src/ext.rs @@ -26,7 +26,7 @@ impl ElectrsD { match self.client.transaction_get(txid) { Ok(tx) => { // having the raw tx doesn't mean the scripts has been indexed - let txid = tx.txid(); + let txid = tx.compute_txid(); if let Some(output) = tx.output.first() { let history = self .client From 0892b01a4d4408e6e9a954cbfc1cbb6ff0a0b0e7 Mon Sep 17 00:00:00 2001 From: Leonardo Lima Date: Sat, 4 May 2024 17:18:34 -0300 Subject: [PATCH 4/4] chore: bump version to `0.28.0` --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 80d1b1c..141108f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "electrsd" -version = "0.27.3" +version = "0.28.0" authors = ["Riccardo Casatta "] description = "Utility to run a regtest electrs process, useful in integration testing environment" repository = "https://github.com/RCasatta/electrsd"