Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
cf committed Jun 27, 2024
1 parent cefb879 commit ca2296c
Show file tree
Hide file tree
Showing 4 changed files with 78 additions and 68 deletions.
3 changes: 2 additions & 1 deletion bitcoin/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ edition = "2018"
exclude = ["tests", "contrib"]

[features]
default = [ "std", "secp-recovery" ]
default = [ "std", "secp-recovery", "serde" ]
rand-std = ["secp256k1/rand-std", "std"]
rand = ["secp256k1/rand"]
serde = ["actual-serde", "hashes/serde", "secp256k1/serde", "internals/serde"]
Expand Down Expand Up @@ -55,6 +55,7 @@ serde_json = "1.0.0"
serde_test = "1.0.19"
serde_derive = "1.0.103"
bincode = "1.3.1"
anyhow = "=1.0.86"

[target.'cfg(mutate)'.dev-dependencies]
mutagen = { git = "https://github.com/llogiq/mutagen" }
Expand Down
139 changes: 74 additions & 65 deletions bitcoin/src/blockdata/block.rs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bitcoin/src/p2p/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ impl Decodable for ServiceFlags {
}
/// Network magic bytes to identify the cryptocurrency network the message was intended for.
#[derive(Copy, PartialEq, Eq, PartialOrd, Ord, Clone, Hash)]
pub struct Magic([u8; 4]);
pub struct Magic(pub [u8; 4]);

impl Magic {
/// Bitcoin mainnet network magic bytes.
Expand Down
2 changes: 1 addition & 1 deletion hashes/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ actual-core2 = { package = "core2", version = "0.3.2", default-features = false,

[dev-dependencies]
serde_test = "1.0"
serde_json = "1.0"
serde_json = "1.0"

0 comments on commit ca2296c

Please sign in to comment.