From: Tamas Blummer Date: Sat, 10 Mar 2018 14:12:19 +0000 (+0100) Subject: use new bitcoin-chain module extracted from bitcoin X-Git-Tag: v0.0.12~422^2 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=f200f26fe2fe753421e832d29b3f1f759936367c;p=rust-lightning use new bitcoin-chain module extracted from bitcoin --- 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;