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.
This commit is contained in:
Tobin C. Harding 2024-11-01 17:04:03 +11:00
parent c986b2f620
commit c90f4b6033
No known key found for this signature in database
GPG Key ID: 40BF9E4C269D6607
1 changed files with 1 additions and 1 deletions

View File

@ -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)
}
}