Skip to content

Commit 19bdeb1

Browse files
committed
replace temporary dependency on bitcoin-internals with hex-conservative
1 parent c99118e commit 19bdeb1

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ path = "src/lib.rs"
1919
[dependencies]
2020
serde = { version = "1.0", features = ["derive"] }
2121
bitcoin = { version = "0.30.0", features = ["serde", "std"], default-features = false }
22-
# Temporary dependency on internals until the rust-bitcoin devs release the hex-conservative crate.
23-
bitcoin-internals = { version = "0.1.0", features = ["alloc"] }
22+
hex = { package = "hex-conservative", version = "*" }
2423
log = "^0.4"
2524
ureq = { version = "2.5.0", features = ["json"], optional = true }
2625
reqwest = { version = "0.11", optional = true, default-features = false, features = ["json"] }

src/async.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ use bitcoin::hashes::{sha256, Hash};
2020
use bitcoin::{
2121
block::Header as BlockHeader, Block, BlockHash, MerkleBlock, Script, Transaction, Txid,
2222
};
23-
use bitcoin_internals::hex::display::DisplayHex;
23+
use hex::display::DisplayHex;
2424

2525
#[allow(unused_imports)]
2626
use log::{debug, error, info, trace};

src/blocking.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ use bitcoin::{
2929
block::Header as BlockHeader, Block, BlockHash, MerkleBlock, Script, Transaction, Txid,
3030
};
3131

32-
use bitcoin_internals::hex::display::DisplayHex;
32+
use hex::display::DisplayHex;
3333

3434
use crate::{BlockStatus, BlockSummary, Builder, Error, MerkleProof, OutputStatus, Tx, TxStatus};
3535

0 commit comments

Comments
 (0)