Przeglądaj źródła

validator/pow: Use entire header for PoW hashing

x 7 miesięcy temu
rodzic
commit
5b72692759
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/validator/pow.rs

+ 1 - 1
src/validator/pow.rs

@@ -319,7 +319,7 @@ impl PoWModule {
                 );
 
                 let verification_time = Instant::now();
-                let out_hash = vm.calculate_hash(header.hash().inner())?;
+                let out_hash = vm.calculate_hash(&header.to_blockhashing_blob())?;
                 (BigUint::from_bytes_le(&out_hash), verification_time)
             }
             Monero(powdata) => {