Skip to content

Commit

Permalink
Update mod.rs
Browse files Browse the repository at this point in the history
removed mainnet params
  • Loading branch information
WagLayla authored Sep 16, 2024
1 parent 3a70108 commit 23e58be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion consensus/src/processes/pruning_proof/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ impl PruningProofManager {
for header in proof.iter().flatten().cloned() {
if let Vacant(e) = dag.entry(header.hash) {
let state = waglayla_pow::State::new(&header);
let (_, pow) = state.check_pow(header.nonce, header.daa_score > MAINNET_PARAMS.hf_relaunch_daa_score); // TODO: Check if pow passes
let (_, pow) = state.check_pow(header.nonce); // TODO: Check if pow passes
let signed_block_level = self.max_block_level as i64 - pow.bits() as i64;
let block_level = max(signed_block_level, 0) as BlockLevel;
self.headers_store.insert(header.hash, header.clone(), block_level).unwrap();
Expand Down

0 comments on commit 23e58be

Please sign in to comment.