From 0b5fb45ea00e5870143f9270d0a8cdc97e4c5d4a Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Tue, 23 Jan 2024 18:48:38 +1100 Subject: [PATCH] consensus: Remove HEX_BUF_SIZE todo Remove the todo, replace it with a comment stating that we guessed the size and add an issue to measure and improve the value. https://github.com/rust-bitcoin/rust-bitcoin/issues/2391 --- bitcoin/src/consensus/serde.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitcoin/src/consensus/serde.rs b/bitcoin/src/consensus/serde.rs index 9a8d66cc..6c9c9c32 100644 --- a/bitcoin/src/consensus/serde.rs +++ b/bitcoin/src/consensus/serde.rs @@ -66,7 +66,7 @@ pub mod hex { } } - // TODO measure various sizes and determine the best value + // We just guessed at a reasonably sane value. const HEX_BUF_SIZE: usize = 512; /// Hex byte encoder.