Skip to content

Commit

Permalink
Merge pull request #89 from spacemeshos/fix-verifying-scrypt-pow
Browse files Browse the repository at this point in the history
Fix scrypt-based pow verification
  • Loading branch information
poszu committed Jun 15, 2023
2 parents f9d9bd1 + 3c3a551 commit bf2da95
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/verification.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ impl Verifier {
proof.pow,
nonce_group,
&challenge,
params.scrypt,
params.pow_scrypt,
params.scrypt_pow_difficulty,
)?;
}
Expand Down Expand Up @@ -354,7 +354,7 @@ mod tests {
scrypt_pow_difficulty: u64::MAX / 16,
pow_scrypt: ScryptParams::new(1, 0, 0),
pow_difficulty: [0x00; 32],
scrypt: ScryptParams::new(1, 0, 0),
scrypt: ScryptParams::new(3, 0, 0),
};

let pow = crate::pow::scrypt::find_k2_pow(
Expand Down

0 comments on commit bf2da95

Please sign in to comment.