From f200f26fe2fe753421e832d29b3f1f759936367c Mon Sep 17 00:00:00 2001 From: Tamas Blummer Date: Sat, 10 Mar 2018 15:12:19 +0100 Subject: [PATCH] use new bitcoin-chain module extracted from bitcoin --- Cargo.toml | 4 ++++ src/chain/rustbitcoinchain.rs | 2 +- src/lib.rs | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index ff6451f73..822484298 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,6 +15,10 @@ non_bitcoin_chain_hash_routing = [] [dependencies] bitcoin = "0.11" +bitcoin-chain = { git = "https://github.com/rust-bitcoin/rust-bitcoin-chain", branch = "master" } rust-crypto = "0.2" rand = "0.4" secp256k1 = "0.8" + +[patch.crates-io] +bitcoin = { git = "https://github.com/rust-bitcoin/rust-bitcoin", branch = "master" } \ No newline at end of file diff --git a/src/chain/rustbitcoinchain.rs b/src/chain/rustbitcoinchain.rs index 9f2573996..d933416a7 100644 --- a/src/chain/rustbitcoinchain.rs +++ b/src/chain/rustbitcoinchain.rs @@ -1,4 +1,4 @@ -use bitcoin::blockdata::blockchain::Blockchain; +use bitcoin_chain::blockchain::Blockchain; use bitcoin::blockdata::transaction::Transaction; use bitcoin::blockdata::block::Block; use bitcoin::blockdata::script::Script; diff --git a/src/lib.rs b/src/lib.rs index c01321776..7d2654a5b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,6 +1,7 @@ #![crate_name = "lightning"] extern crate bitcoin; +extern crate bitcoin_chain; extern crate secp256k1; extern crate rand; extern crate crypto; -- 2.39.5