1
0
mirror of https://github.com/romanz/electrs.git synced 2024-11-19 01:43:29 +01:00

Bump bitcoin crate to 0.27.1

Fixes #490.
Also, reverts 52dd59c117.
This commit is contained in:
Roman Zeyde 2021-09-20 17:39:48 +03:00
parent 2887359883
commit 3041e89cd2
3 changed files with 5 additions and 5 deletions

4
Cargo.lock generated
View File

@ -81,9 +81,9 @@ dependencies = [
[[package]]
name = "bitcoin"
version = "0.27.0"
version = "0.27.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8a427b27dae305157520d86673f2393b3eb08d880609abfcffc6e3c3c820e764"
checksum = "9a41df6ad9642c5c15ae312dd3d074de38fd3eb7cc87ad4ce10f90292a83fe4d"
dependencies = [
"bech32",
"bitcoin_hashes",

View File

@ -21,7 +21,7 @@ spec = "internal/config_specification.toml"
[dependencies]
anyhow = "1.0"
bitcoin = { version = "0.27", features = ["use-serde", "rand"] }
bitcoin = { version = "0.27.1", features = ["use-serde", "rand"] }
configure_me = "0.4"
crossbeam-channel = "0.5"
dirs-next = "2.0"

View File

@ -47,7 +47,7 @@ impl Connection {
}
fn send(&mut self, msg: NetworkMessage) -> Result<()> {
trace!("send: {}", msg.cmd());
trace!("send: {:?}", msg);
let raw_msg = message::RawNetworkMessage {
magic: self.network.magic(),
payload: msg,
@ -62,7 +62,7 @@ impl Connection {
let raw_msg: message::RawNetworkMessage =
self.reader.read_next().context("p2p failed to recv")?;
trace!("recv: {}", raw_msg.cmd());
trace!("recv: {:?}", raw_msg.payload);
match raw_msg.payload {
NetworkMessage::Version(version) => {
debug!("peer version: {:?}", version);