Skip to content

Commit efe3862

Browse files
committed
contains_block shoud not take ownership of self
1 parent ddbabc2 commit efe3862

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

chain/src/orphan_block_pool.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ impl OrphanBlockPool {
165165
self.inner.read().get_block(hash)
166166
}
167167

168-
pub fn contains_block(self, hash: &packed::Byte32) -> bool {
168+
pub fn contains_block(&self, hash: &packed::Byte32) -> bool {
169169
self.inner.read().contains_block(hash)
170170
}
171171

0 commit comments

Comments
 (0)