Last fixes that should have been part of #1534
This commit is contained in:
@@ -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(())
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user