Skip to content

Commit

Permalink
Remove duplicate commented calc_data_hash
Browse files Browse the repository at this point in the history
  • Loading branch information
eval-exec committed Jul 16, 2024
1 parent 2c3cfb9 commit 7a40eb2
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions store/src/store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -369,15 +369,6 @@ pub trait ChainStore: Send + Sync + Sized {
let data_hash = reader.output_data_hash().to_entity();
(data, data_hash)
} else {
// impl packed::CellOutput {
// pub fn calc_data_hash(data: &[u8]) -> packed::Byte32 {
// if data.is_empty() {
// packed::Byte32::zero()
// } else {
// blake2b_256(data).pack()
// }
// }
// }
(Bytes::new(), packed::Byte32::zero())
}
});
Expand Down Expand Up @@ -405,15 +396,6 @@ pub trait ChainStore: Send + Sync + Sized {
if !raw.as_ref().is_empty() {
packed::Byte32Reader::from_slice_should_be_ok(raw.as_ref()).to_entity()
} else {
// impl packed::CellOutput {
// pub fn calc_data_hash(data: &[u8]) -> packed::Byte32 {
// if data.is_empty() {
// packed::Byte32::zero()
// } else {
// blake2b_256(data).pack()
// }
// }
// }
packed::Byte32::zero()
}
});
Expand Down

0 comments on commit 7a40eb2

Please sign in to comment.