Skip to content

Commit c4e7161

Browse files
authored
Merge pull request #10 from tamasblummer/use_bitcoin_chain
use new bitcoin-chain module extracted from bitcoin
2 parents 34138a0 + f200f26 commit c4e7161

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ non_bitcoin_chain_hash_routing = []
1515

1616
[dependencies]
1717
bitcoin = "0.11"
18+
bitcoin-chain = { git = "https://github.com/rust-bitcoin/rust-bitcoin-chain", branch = "master" }
1819
rust-crypto = "0.2"
1920
rand = "0.4"
2021
secp256k1 = "0.8"
22+
23+
[patch.crates-io]
24+
bitcoin = { git = "https://github.com/rust-bitcoin/rust-bitcoin", branch = "master" }

src/chain/rustbitcoinchain.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use bitcoin::blockdata::blockchain::Blockchain;
1+
use bitcoin_chain::blockchain::Blockchain;
22
use bitcoin::blockdata::transaction::Transaction;
33
use bitcoin::blockdata::block::Block;
44
use bitcoin::blockdata::script::Script;

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#![crate_name = "lightning"]
22

33
extern crate bitcoin;
4+
extern crate bitcoin_chain;
45
extern crate secp256k1;
56
extern crate rand;
67
extern crate crypto;

0 commit comments

Comments
 (0)