Skip to content

Commit 7c76cc1

Browse files
committed
consensus_encoding: Remove private const
`internals` change is not released yet, just use a magic number for now.
1 parent ab12a60 commit 7c76cc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)