Skip to content

Commit

Permalink
no check the filter
Browse files Browse the repository at this point in the history
  • Loading branch information
jackzhhuang committed Feb 11, 2025
1 parent 1d76fc4 commit 6fda557
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions chain/src/chain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1397,13 +1397,14 @@ impl ChainReader for BlockChain {

let ghostdata = dag.verify_and_ghostdata(uncles, header, latest_pruning_point)?;

let pruning_point = if header.pruning_point() == HashValue::zero() {
self.genesis_hash
} else {
header.pruning_point()
};

dag.check_bounded_merge_depth(pruning_point, &ghostdata, self.get_pruning_config().0)?;
// it should check in the future
// let pruning_point = if header.pruning_point() == HashValue::zero() {
// self.genesis_hash
// } else {
// header.pruning_point()
// };

// dag.check_bounded_merge_depth(pruning_point, &ghostdata, self.get_pruning_config().0)?;

Ok(ghostdata)
}
Expand Down

0 comments on commit 6fda557

Please sign in to comment.