Derive Hash for BlockHeaderHash.
This allows using BlockHeaderHashes in HashSets, HashMaps, etc.
This commit is contained in:
parent
ebf60b8840
commit
5f6bf188ff
|
|
@ -31,7 +31,7 @@ use crate::transaction::Transaction;
|
|||
/// the direct bytes of the transactions as well as the header. So
|
||||
/// for now I want to call it a `BlockHeaderHash` because that's
|
||||
/// more explicit.
|
||||
#[derive(Copy, Clone, Eq, PartialEq)]
|
||||
#[derive(Copy, Clone, Eq, PartialEq, Hash)]
|
||||
#[cfg_attr(test, derive(Arbitrary))]
|
||||
pub struct BlockHeaderHash(pub [u8; 32]);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue