derive Arbitrary on BlockHeight
This commit is contained in:
parent
08012f058a
commit
b786e1e19c
|
@ -42,6 +42,7 @@ impl fmt::Debug for Sha256dChecksum {
|
||||||
|
|
||||||
/// A u32 which represents a block height value.
|
/// A u32 which represents a block height value.
|
||||||
#[derive(Copy, Clone, Debug, Eq, PartialEq)]
|
#[derive(Copy, Clone, Debug, Eq, PartialEq)]
|
||||||
|
#[cfg_attr(test, derive(Arbitrary))]
|
||||||
pub struct BlockHeight(pub u32);
|
pub struct BlockHeight(pub u32);
|
||||||
|
|
||||||
/// A Bitcoin-style `locktime`, representing either a block height or an epoch
|
/// A Bitcoin-style `locktime`, representing either a block height or an epoch
|
||||||
|
|
Loading…
Reference in New Issue