Skip to content

Commit

Permalink
Bump bitcoin and elements dep
Browse files Browse the repository at this point in the history
  • Loading branch information
RCasatta committed Jan 13, 2025
1 parent 4878e0a commit e497577
Show file tree
Hide file tree
Showing 11 changed files with 107 additions and 66 deletions.
129 changes: 85 additions & 44 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 4 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,13 @@ arraydeque = "0.5.1"
arrayref = "0.3.6"
base64 = "0.22"
bincode = "1.3.1"
bitcoin = { version = "0.31", features = ["serde"] }
bitcoin = { version = "0.32", features = ["serde"] }
clap = "2.33.3"
crossbeam-channel = "0.5.0"
dirs = "5.0.1"
elements = { version = "0.24", features = ["serde"], optional = true }
elements = { version = "0.25", features = ["serde"], optional = true }
error-chain = "0.12.4"
glob = "0.3"
hex = { package = "hex-conservative", version = "0.1.1" }
itertools = "0.12"
lazy_static = "1.3.0"
libc = "0.2.81"
Expand Down Expand Up @@ -61,8 +60,8 @@ zmq = "0.10.0"


[dev-dependencies]
bitcoind = { version = "0.34.3", features = ["25_0"] }
elementsd = { version = "0.9.2", features = ["22_1_1"] }
bitcoind = { version = "0.36", features = ["25_0"] }
elementsd = { version = "0.11", features = ["22_1_1"] }
electrumd = { version = "0.1.0", features = ["4_5_4"] }
ureq = { version = "2.9", default-features = false, features = ["json"] }
tempfile = "3.10"
Expand Down
2 changes: 1 addition & 1 deletion src/bin/popular-scripts.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
extern crate electrs;

use bitcoin::hex::DisplayHex;
use electrs::{
config::Config,
new_index::{Store, TxHistoryKey},
util::bincode,
};
use hex::DisplayHex;

fn main() {
let config = Config::from_args();
Expand Down
2 changes: 1 addition & 1 deletion src/bin/tx-fingerprint-stats.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ fn main() {
}

let tx: Transaction = deserialize(&value).expect("failed to parse Transaction");
let txid = tx.txid();
let txid = tx.compute_txid();

iter.next();

Expand Down
2 changes: 1 addition & 1 deletion src/daemon.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ use std::time::Duration;
use std::{env, fs, io};

use base64::prelude::{Engine, BASE64_STANDARD};
use bitcoin::hex::FromHex;
use error_chain::ChainedError;
use hex::FromHex;
use rayon::iter::{IndexedParallelIterator, IntoParallelIterator, ParallelIterator};
use serde_json::{from_str, from_value, Value};

Expand Down
2 changes: 1 addition & 1 deletion src/electrum/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ use std::thread;
use std::time::Instant;

use bitcoin::hashes::sha256d::Hash as Sha256dHash;
use bitcoin::hex::DisplayHex;
use crypto::digest::Digest;
use crypto::sha2::Sha256;
use error_chain::ChainedError;
use hex::{self, DisplayHex};
use serde_json::{from_str, Value};

#[cfg(not(feature = "liquid"))]
Expand Down
2 changes: 1 addition & 1 deletion src/new_index/precache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use crypto::digest::Digest;
use crypto::sha2::Sha256;
use rayon::prelude::*;

use hex::FromHex;
use bitcoin::hex::FromHex;
use std::fs::File;
use std::io;
use std::io::prelude::*;
Expand Down
Loading

0 comments on commit e497577

Please sign in to comment.