Skip to content

Commit 3ca2a5f

Browse files
committed
add Height::ZERO associated constants
1 parent ba4aad3 commit 3ca2a5f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/locktime.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,9 @@ impl Decodable for LockTime {
304304
pub struct Height(u32);
305305

306306
impl Height {
307+
/// Height zero
308+
pub const ZERO: Self = Height(0);
309+
307310
/// Constructs a new block height.
308311
///
309312
/// # Errors

0 commit comments

Comments
 (0)