diff --git a/multi-pow/src/lib.rs b/multi-pow/src/lib.rs index ffa5ae4a..6b5e0bcf 100644 --- a/multi-pow/src/lib.rs +++ b/multi-pow/src/lib.rs @@ -58,10 +58,14 @@ pub struct Threshold { pub keccak: U256, } -// This trait is not fully baked in the Substrate PoW code, so I will not use it for now. +// This trait does not seem to be fully baked in the Substrate PoW code +// But we do need some kind of sinsible impl here so the node can import blocks. +// so I will not use it for now. impl TotalDifficulty for Threshold { - fn increment(&mut self, _: Threshold) { - // I'm pretty sure we don't do anything interesting with this... Let's see. + fn increment(&mut self, other: Threshold) { + self.md5 += other.md5; + self.sha3 += other.sha3; + self.keccak += other.keccak; } }