Fix config defaults (#1376)

* fix global defaults to reflect grin.toml

* rustfmt
This commit is contained in:
Antioch Peverell
2018-08-18 17:32:04 +01:00
committed by GitHub
parent 686f7517ed
commit c05c5e21ea
+3 -4
View File
@@ -214,7 +214,7 @@ impl Default for ServerConfig {
skip_sync_wait: Some(false),
run_tui: Some(true),
run_wallet_listener: Some(true),
run_wallet_owner_api: Some(true),
run_wallet_owner_api: Some(false),
use_db_wallet: None,
run_test_miner: Some(false),
test_miner_wallet_url: None,
@@ -336,7 +336,7 @@ impl SyncState {
}
/// Communicate sync error
pub fn set_sync_error(&self, error: Error){
pub fn set_sync_error(&self, error: Error) {
*self.sync_error.write().unwrap() = Some(error);
}
@@ -346,10 +346,9 @@ impl SyncState {
}
/// Clear sync error
pub fn clear_sync_error(&self){
pub fn clear_sync_error(&self) {
*self.sync_error.write().unwrap() = None;
}
}
impl chain::TxHashsetWriteStatus for SyncState {