Skip to content

Commit

Permalink
update bitcoin crate to 0.31.1
Browse files Browse the repository at this point in the history
  • Loading branch information
antonilol committed Jan 19, 2024
1 parent 5f9d018 commit 8c4cac5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ async = ["dep:async_zmq", "dep:futures-util"]

[dependencies]
async_zmq = { version = "0.4.0", optional = true }
bitcoin = "0.30.0"
bitcoin = "0.31.1"
futures-util = { version = "0.3.28", optional = true }
zmq = "0.10.0"
zmq-sys = "0.12.0"
Expand Down
4 changes: 2 additions & 2 deletions integration_tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ version = "1.0.0"
edition = "2021"

[dependencies]
bitcoin = "0.30.0"
bitcoincore-rpc = "0.17.0"
bitcoin = "0.31.1"
bitcoincore-rpc = "0.18.0"
bitcoincore-zmq = { path = "..", features = ["async"] }
futures = "0.3.28"
tokio = { version = "1.35.0", features = ["full"] }
5 changes: 2 additions & 3 deletions src/message.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,13 @@ use crate::{
};
use bitcoin::{
consensus::{deserialize, serialize},
constants::MAX_BLOCK_WEIGHT,
hashes::Hash,
Block, BlockHash, Transaction, Txid,
Block, BlockHash, Transaction, Txid, Weight,
};
use core::{cmp::min, fmt};

pub const TOPIC_MAX_LEN: usize = 9;
pub const DATA_MAX_LEN: usize = MAX_BLOCK_WEIGHT as usize;
pub const DATA_MAX_LEN: usize = Weight::MAX_BLOCK.to_wu() as usize;
pub const SEQUENCE_LEN: usize = 4;

#[derive(Debug, PartialEq, Eq, Clone)]
Expand Down

0 comments on commit 8c4cac5

Please sign in to comment.