derive Arbitrary on BlockHeight

This commit is contained in:
Deirdre Connolly 2020-01-21 18:28:59 -05:00 committed by Deirdre Connolly
parent 08012f058a
commit b786e1e19c
1 changed files with 1 additions and 0 deletions

View File

@ -42,6 +42,7 @@ impl fmt::Debug for Sha256dChecksum {
/// A u32 which represents a block height value.
#[derive(Copy, Clone, Debug, Eq, PartialEq)]
#[cfg_attr(test, derive(Arbitrary))]
pub struct BlockHeight(pub u32);
/// A Bitcoin-style `locktime`, representing either a block height or an epoch