Skip to content

Commit

Permalink
Log k2pow nonce-group and difficulty on debug
Browse files Browse the repository at this point in the history
  • Loading branch information
poszu committed Nov 6, 2023
1 parent 1541878 commit 4d14816
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/verification.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ use std::cmp::Ordering;

use cipher::BlockEncrypt;
use itertools::Itertools;
use log::debug;

use crate::{
cipher::AesCipher,
Expand Down Expand Up @@ -148,6 +149,10 @@ impl Verifier {

// Verify K2 PoW
let nonce_group = proof.nonce / NONCES_PER_AES;
debug!(
"verifying K2 pow for nonce group: {nonce_group} with difficulty: {:x?}",
pow_difficulty
);
self.pow_verifier.verify(
proof.pow,
nonce_group
Expand Down

0 comments on commit 4d14816

Please sign in to comment.