Skip to content
This repository was archived by the owner on Nov 26, 2024. It is now read-only.

Commit bc746bd

Browse files
committed
WIP: Track rust-bitcoin master branch
As we develop `primitives` it is useful to have crates using the changes to catch mistakes as we go. The crates in this repo are prime candidates for depending on `primitives` and not using `rust-bitcoin`.
1 parent 9cc1d68 commit bc746bd

File tree

7 files changed

+36
-7
lines changed

7 files changed

+36
-7
lines changed

Cargo.toml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,31 @@ path = "json"
1111

1212
[patch.crates-io.jsonrpc]
1313
path = "jsonrpc"
14+
15+
[patch.crates-io.base58ck]
16+
git = "https://github.com/tcharding/rust-bitcoin"
17+
branch = "10-16-set-version-to-alpha"
18+
19+
[patch.crates-io.bitcoin]
20+
git = "https://github.com/tcharding/rust-bitcoin"
21+
branch = "10-16-set-version-to-alpha"
22+
23+
[patch.crates-io.bitcoin_hashes]
24+
git = "https://github.com/tcharding/rust-bitcoin"
25+
branch = "10-16-set-version-to-alpha"
26+
27+
[patch.crates-io.bitcoin-internals]
28+
git = "https://github.com/tcharding/rust-bitcoin"
29+
branch = "10-16-set-version-to-alpha"
30+
31+
[patch.crates-io.bitcoin-io]
32+
git = "https://github.com/tcharding/rust-bitcoin"
33+
branch = "10-16-set-version-to-alpha"
34+
35+
[patch.crates-io.bitcoin-primitives]
36+
git = "https://github.com/tcharding/rust-bitcoin"
37+
branch = "10-16-set-version-to-alpha"
38+
39+
[patch.crates-io.bitcoin-units]
40+
git = "https://github.com/tcharding/rust-bitcoin"
41+
branch = "10-16-set-version-to-alpha"

client/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ rustdoc-args = ["--cfg", "docsrs"]
2626
client-sync = ["jsonrpc"]
2727

2828
[dependencies]
29-
bitcoin = { version = "0.32.0", default-features = false, features = ["std", "serde"] }
29+
bitcoin = { version = "0.33.0-alpha", default-features = false, features = ["std", "serde"] }
3030
json = { package = "bitcoind-json-rpc-types", version = "0.3.0", default-features = false, features = [] }
3131
log = "0.4"
3232
serde = { version = "1.0.103", default-features = false, features = [ "derive", "alloc" ] }

json/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ exclude = ["tests", "contrib"]
2121
default = []
2222

2323
[dependencies]
24-
bitcoin = { version = "0.32.0", default-features = false, features = ["std", "serde"] }
25-
internals = { package = "bitcoin-internals", version = "0.3.0", default-features = false, features = ["std"] }
24+
bitcoin = { version = "0.33.0-alpha", default-features = false, features = ["std", "serde"] }
25+
internals = { package = "bitcoin-internals", version = "0.4.0", default-features = false, features = ["std"] }
2626
serde = { version = "1.0.103", default-features = false, features = [ "derive", "alloc" ] }
2727
serde_json = { version = "1.0.117" }
2828

json/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,4 +82,3 @@ fn btc_per_kb(btc_per_kb: f64) -> Result<Option<FeeRate>, ParseAmountError> {
8282

8383
Ok(rate)
8484
}
85-

json/src/v17/blockchain.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,10 @@ use std::fmt;
99
use std::str::FromStr;
1010

1111
use bitcoin::consensus::encode;
12-
use bitcoin::error::UnprefixedHexError;
1312
use bitcoin::hex::FromHex;
13+
use bitcoin::parse::UnprefixedHexError;
14+
use bitcoin::pow::CompactTargetExt as _;
15+
use bitcoin::script::ScriptBufExt as _;
1416
use bitcoin::{
1517
address, amount, block, hex, network, Address, Amount, Block, BlockHash, CompactTarget,
1618
FeeRate, Network, ScriptBuf, TxMerkleNode, TxOut, Txid, Weight, Work,

json/src/v19/blockchain.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
use core::fmt;
88
use std::collections::BTreeMap;
99

10-
use bitcoin::error::UnprefixedHexError;
10+
use bitcoin::parse::UnprefixedHexError;
1111
use bitcoin::{hex, network, BlockHash, Network, Work};
1212
use internals::write_err;
1313
use serde::{Deserialize, Serialize};

regtest/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ serde_json = { version = "1.0.117" }
2424
env_logger = "0.9.0"
2525

2626
[build-dependencies]
27-
bitcoin_hashes = { version = ">= 0.13, <= 0.14", optional = true }
27+
bitcoin_hashes = { version = "0.15", optional = true }
2828
flate2 = { version = "1.0", optional = true }
2929
tar = { version = "0.4", optional = true }
3030
minreq = { version = "2.9.1", default-features = false, features = [

0 commit comments

Comments
 (0)