diff --git a/src/network/message_blockdata.rs b/src/network/message_blockdata.rs index c484bc78..c49d0072 100644 --- a/src/network/message_blockdata.rs +++ b/src/network/message_blockdata.rs @@ -76,6 +76,12 @@ pub struct Inventory { pub hash: sha256d::Hash } +impl ::std::hash::Hash for Inventory { + fn hash(&self, state: &mut H) { + self.hash.hash(state) + } +} + impl GetBlocksMessage { /// Construct a new `getblocks` message pub fn new(locator_hashes: Vec, stop_hash: sha256d::Hash) -> GetBlocksMessage {