diff --git a/bitcoin/src/pow.rs b/bitcoin/src/pow.rs index 1642bef46..01e895a15 100644 --- a/bitcoin/src/pow.rs +++ b/bitcoin/src/pow.rs @@ -497,7 +497,7 @@ impl U256 { // Caller to ensure `s` does not contain a prefix. fn from_hex_internal(s: &str) -> Result { - let (high, low) = if s.len() < 32 { + let (high, low) = if s.len() <= 32 { let low = parse::hex_u128_unchecked(s)?; (0, low) } else {