mirror of
https://github.com/mimblewimble/grin.git
synced 2025-05-07 01:31:15 +03:00
Last fixes that should have been part of #1534
This commit is contained in:
parent
9cc7aed713
commit
ba72e6e29e
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue