Skip to content

Commit f3f7640

Browse files
committed
Merge #168: add Height::ZERO associated constants
3ca2a5f add Height::ZERO associated constants (Riccardo Casatta) Pull request description: ACKs for top commit: apoelstra: ACK 3ca2a5f Tree-SHA512: 2081aa7c395391880e2d82e1b9145682b0323a3dbb848f77ef1ce98d12460078fb1506f865daa6c4a379bd10d39975a3b6371d27a6afbb27b920dff9ff67b878
2 parents 4a963db + 3ca2a5f commit f3f7640

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)