From c90f4b60331f89750d530526c684212e6529662d Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Fri, 1 Nov 2024 17:04:03 +1100 Subject: [PATCH] Fix bug in error output `ParseTimeError` should say "block time" not "block height". This looks like a cut'n pasta error because the `ParseHeightError` uses the same string. --- units/src/locktime/absolute.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/units/src/locktime/absolute.rs b/units/src/locktime/absolute.rs index 69c80a52b..79bdde330 100644 --- a/units/src/locktime/absolute.rs +++ b/units/src/locktime/absolute.rs @@ -204,7 +204,7 @@ pub struct ParseTimeError(ParseError); impl fmt::Display for ParseTimeError { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { - self.0.display(f, "block height", LOCK_TIME_THRESHOLD, u32::MAX) + self.0.display(f, "block time", LOCK_TIME_THRESHOLD, u32::MAX) } }