Skip to content

Commit e48677c

Browse files
committed
Merge rust-bitcoin#5149: consensus_encoding: Add version number
ae3fa3f consensus_encoding: Add dep version number (Tobin C. Harding) 7c76cc1 consensus_encoding: Remove private const (Tobin C. Harding) Pull request description: Add a version number to the deps so we can publish. ACKs for top commit: apoelstra: ACK ae3fa3f; successfully ran local tests Tree-SHA512: afc692ae5b4555f7dc8693f934357dc12078464ea94f3e701ae1e27f21852134f6a83857877a885988dcb73ce0199b6fde9b1f15c624171437ec4cfb92f56ca2
2 parents 69c95dc + ae3fa3f commit e48677c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

consensus_encoding/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ std = ["alloc", "internals/std"]
1818
alloc = ["internals/alloc"]
1919

2020
[dependencies]
21-
hashes = { package = "bitcoin_hashes", path = "../hashes", default-features = false }
22-
internals = { package = "bitcoin-internals", path = "../internals" }
21+
hashes = { package = "bitcoin_hashes", path = "../hashes", version = "0.16.0", default-features = false }
22+
internals = { package = "bitcoin-internals", path = "../internals", version = "0.4.0" }
2323

2424
[package.metadata.docs.rs]
2525
all-features = true

consensus_encoding/src/encode/encoders.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ use internals::{compact_size, ToU64};
1717
use super::{Encodable, Encoder};
1818

1919
/// The maximum length of a compact size encoding.
20-
const SIZE: usize = compact_size::MAX_ENCODING_SIZE;
20+
const SIZE: usize = 9;
2121

2222
/// An encoder for a single byte slice.
2323
pub struct BytesEncoder<'sl> {

0 commit comments

Comments
 (0)