Last fixes that should have been part of #1534

This commit is contained in:
Ignotus Peverell
2018-09-19 00:39:56 +00:00
parent 9cc7aed713
commit ba72e6e29e
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -238,9 +238,9 @@ impl ProofOfWork {
pub fn write<W: Writer>(&self, ver: u16, writer: &mut W) -> Result<(), ser::Error> {
if writer.serialization_mode() != ser::SerializationMode::Hash {
self.write_pre_pow(ver, writer)?;
writer.write_u64(self.nonce)?;
}
writer.write_u64(self.nonce)?;
self.proof.write(writer)?;
Ok(())
}
+1 -1
View File
@@ -26,7 +26,7 @@ use common::types::StratumServerConfig;
use core::core::hash::{Hash, Hashed};
use core::core::verifier_cache::VerifierCache;
use core::core::{Block, BlockHeader};
use core::pow::{cuckoo, Proof};
use core::pow::cuckoo;
use core::{consensus, global};
use mining::mine_block;
use pool;