diff --git a/Cargo.toml b/Cargo.toml
index eb5104d..eb050c2 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -34,7 +34,6 @@ tokio = { version = "1", features = ["time"], optional = true }
[dev-dependencies]
tokio = { version = "1.20.1", features = ["full"] }
electrsd = { version = "0.33.0", features = ["legacy", "esplora_a33e97e1", "corepc-node_28_0"] }
-lazy_static = "1.4.0"
[features]
default = ["blocking", "async", "async-https", "tokio"]
diff --git a/src/lib.rs b/src/lib.rs
index d5bb38c..471f2f2 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -272,10 +272,10 @@ impl_error!(bitcoin::hex::HexToBytesError, HexToBytes, Error);
mod test {
use super::*;
use electrsd::{corepc_node, ElectrsD};
- use lazy_static::lazy_static;
use std::env;
use std::str::FromStr;
- use tokio::sync::Mutex;
+ use std::sync::Mutex;
+ use std::sync::Once;
#[cfg(all(feature = "blocking", feature = "async"))]
use {
bitcoin::{hashes::Hash, Amount},
@@ -285,29 +285,73 @@ mod test {
tokio::sync::OnceCell,
};
- lazy_static! {
- static ref BITCOIND: corepc_node::Node = {
+ static BITCOIND: Mutex