Skip to content

Commit

Permalink
Merge pull request #87 from rustaceanrob/bitcoin-10-30
Browse files Browse the repository at this point in the history
Upgrade `bitcoin` to `0.32.4`
  • Loading branch information
rustaceanrob authored Oct 30, 2024
2 parents fe9e4b4 + 3cc0a4a commit d9135e0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion protocol/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ alloc = []
[dependencies]
futures = { version = "0.3.30", default-features = false, optional = true }
rand = { version = "0.8.0", default-features = false }
bitcoin = { version = "0.32.0", default-features = false }
bitcoin = { version = "0.32.4", default-features = false }

[dev-dependencies]
hex = { package = "hex-conservative", version = "0.2.0" }
Expand Down
3 changes: 1 addition & 2 deletions protocol/src/serde.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ use alloc::vec::Vec;
use bitcoin::{
block,
consensus::{encode, Decodable, Encodable},
io::BufRead,
VarInt,
};

Expand Down Expand Up @@ -296,7 +295,7 @@ struct HeaderDeserializationWrapper(Vec<block::Header>);

impl Decodable for HeaderDeserializationWrapper {
#[inline]
fn consensus_decode_from_finite_reader<R: BufRead + ?Sized>(
fn consensus_decode_from_finite_reader<R: bitcoin::io::Read + ?Sized>(
r: &mut R,
) -> Result<Self, encode::Error> {
let len = VarInt::consensus_decode(r)?.0;
Expand Down

0 comments on commit d9135e0

Please sign in to comment.