Cuckoo miner integration, Queue implementation (#84)

* Adding ability to serialise parts of the header, pre-nonce and post-nonce
* Some test integration of queueing functions in cuckoo-miner
* more cuckoo-miner async mode integration, now more or less working
* integrating async miner workflow
* rocksdb update
* u64 internal difficulty representation, and integration of latest Cuckoo-miner API
* change to cuckoo-miner notify function
* Issue in testing, and if use_async value is None in grin.toml
* making async mode explicit in tests - 2
* fiddle with port numbers for CI
* update tag to ensure cuckoo-miner build doesn't fail on windows
* change the order in which tests are run
This commit is contained in:
Yeastplume
2017-08-03 17:57:55 +01:00
committed by Ignotus Peverell
parent c994c7cba2
commit cdf4203dd1
14 changed files with 392 additions and 144 deletions
+2 -2
View File
@@ -184,7 +184,7 @@ impl DifficultyIter {
}
impl Iterator for DifficultyIter {
type Item = Result<(i64, Difficulty), TargetError>;
type Item = Result<(u64, Difficulty), TargetError>;
fn next(&mut self) -> Option<Self::Item> {
let bhe = self.store.get_block_header(&self.next);
@@ -195,7 +195,7 @@ impl Iterator for DifficultyIter {
return None;
}
self.next = bh.previous;
Some(Ok((bh.timestamp.to_timespec().sec, bh.difficulty)))
Some(Ok((bh.timestamp.to_timespec().sec as u64, bh.difficulty)))
}
}
}