Skip to content

Commit

Permalink
fix wasm state
Browse files Browse the repository at this point in the history
  • Loading branch information
okilisan committed May 25, 2024
1 parent 81d0192 commit 0a7049e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion consensus/pow/src/wasm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@ impl State {
// PRE_POW_HASH || TIME || 32 zero byte padding || NONCE
let hasher = PowB3Hash::new(pre_pow_hash, header.timestamp);
let matrix = Matrix::generate(pre_pow_hash);
let header_version = header.version;

Self { inner: crate::State { matrix, target, hasher }, pre_pow_hash }
Self { inner: crate::State { matrix, target, hasher, header_version }, pre_pow_hash }
}

#[wasm_bindgen(getter)]
Expand Down

0 comments on commit 0a7049e

Please sign in to comment.