Cuckoo miner with cmake update (#103)

* updating to use cuckoo-miner latest, which uses cmake
* check on travis CI dependency
This commit is contained in:
Yeastplume 2017-08-24 22:43:11 +01:00 committed by Ignotus Peverell
parent 5febcb509c
commit 3bf06ecd6a
5 changed files with 13 additions and 5 deletions

View file

@ -11,6 +11,7 @@ addons:
- ubuntu-toolchain-r-test - ubuntu-toolchain-r-test
packages: packages:
- g++-5 - g++-5
- cmake
env: env:
global: global:

View file

@ -8,6 +8,12 @@
or see instructions at: or see instructions at:
https://www.rust-lang.org https://www.rust-lang.org
## Install cmake
grin needs cmake 3.8 or greater to compile the mining plugins found in [Cuckoo Miner](https://github.com/mimblewimble/cuckoo-miner). See
your distribution's instructions for ensuring cmake is installed and
available on the path.
## Clone Grin ## Clone Grin
git clone https://github.com/ignopeverell/grin.git git clone https://github.com/ignopeverell/grin.git

View file

@ -80,6 +80,7 @@ cuckoo_miner_async_mode = false
#Plugins currently included are: #Plugins currently included are:
#"simple" : the basic cuckoo algorithm #"simple" : the basic cuckoo algorithm
#"edgetrim" : an algorithm trading speed for a much lower memory footprint #"edgetrim" : an algorithm trading speed for a much lower memory footprint
#"matrix" : fastest available CPU miner, with largest memory footprint
#"tomato" : Time memory-tradeoff... low memory but very slow #"tomato" : Time memory-tradeoff... low memory but very slow
#Not included but verified working: #Not included but verified working:
#"cuda" a gpu miner - which currently needs to bebuilt and installed #"cuda" a gpu miner - which currently needs to bebuilt and installed
@ -87,7 +88,7 @@ cuckoo_miner_async_mode = false
cuckoo_miner_plugin_type = "simple" cuckoo_miner_plugin_type = "simple"
#the list of parameters if you're using "edgetrim" #the list of parameters if you're using "edgetrim or matrix"
#cuckoo_miner_parameter_list = {NUM_THREADS=4, NUM_TRIMS=7} #cuckoo_miner_parameter_list = {NUM_THREADS=4, NUM_TRIMS=7}
#The amount of time, in seconds, to attempt to mine on a particular #The amount of time, in seconds, to attempt to mine on a particular

View file

@ -14,7 +14,7 @@ lazy_static = "~0.2.8"
serde = "~1.0.8" serde = "~1.0.8"
serde_derive = "~1.0.8" serde_derive = "~1.0.8"
cuckoo_miner = { git = "https://github.com/mimblewimble/cuckoo-miner", tag="grin_integration_6"} cuckoo_miner = { git = "https://github.com/mimblewimble/cuckoo-miner", tag="grin_integration_8"}
#cuckoo_miner = { path = "../../cuckoo-miner"} #cuckoo_miner = { path = "../../cuckoo-miner"}
grin_core = { path = "../core" } grin_core = { path = "../core" }

View file

@ -74,7 +74,7 @@ impl PluginMiner {
let plugin_install_path = match miner_config.cuckoo_miner_plugin_dir { let plugin_install_path = match miner_config.cuckoo_miner_plugin_dir {
Some(s) => s, Some(s) => s,
None => String::from(format!("{}/deps", exe_path)) None => String::from(format!("{}/plugins", exe_path))
}; };
let plugin_impl_filter = match miner_config.cuckoo_miner_plugin_type { let plugin_impl_filter = match miner_config.cuckoo_miner_plugin_type {
@ -83,7 +83,7 @@ impl PluginMiner {
}; };
//First, load and query the plugins in the given directory //First, load and query the plugins in the given directory
//These should all be stored in 'deps' at the moment relative //These should all be stored in 'plugins' at the moment relative
//to the executable path, though they should appear somewhere else //to the executable path, though they should appear somewhere else
//when packaging is more//thought out //when packaging is more//thought out
@ -102,7 +102,7 @@ impl PluginMiner {
let result=plugin_manager.load_plugin_dir(plugin_install_path); let result=plugin_manager.load_plugin_dir(plugin_install_path);
if let Err(_) = result { if let Err(_) = result {
error!("Unable to load cuckoo-miner plugin directory, either from configuration or [exe_path]/deps."); error!("Unable to load cuckoo-miner plugin directory, either from configuration or [exe_path]/plugins.");
panic!("Unable to load plugin directory... Please check configuration values"); panic!("Unable to load plugin directory... Please check configuration values");
} }