Ci mode fixes (#86)

* playing around with changing cuckoo sizes on the fly
* modifying tests to use global cuckoo parameters, and checking results
* check for pow size
* Changing global function names, and removing length from POW serialization
This commit is contained in:
Yeastplume
2017-08-09 17:40:23 +01:00
committed by Ignotus Peverell
parent d32ab967f0
commit 131ea2f799
22 changed files with 508 additions and 357 deletions
+5
View File
@@ -27,6 +27,7 @@ extern crate grin_api as api;
extern crate grin_grin as grin;
extern crate grin_wallet as wallet;
extern crate grin_config as config;
extern crate grin_core as core;
extern crate secp256k1zkp as secp;
use std::thread;
@@ -41,12 +42,16 @@ use secp::Secp256k1;
use config::GlobalConfig;
use wallet::WalletConfig;
use core::global;
fn start_from_config_file(mut global_config: GlobalConfig) {
info!(
"Starting the Grin server from configuration file at {}",
global_config.config_file_path.unwrap().to_str().unwrap()
);
global::set_mining_mode(global_config.members.as_mut().unwrap().server.clone().mining_parameter_mode.unwrap());
grin::Server::start(global_config.members.as_mut().unwrap().server.clone()).unwrap();
loop {
thread::sleep(Duration::from_secs(60));