From 107ea3c4dd5e75b64283a01d83a1f4a2816fa31c Mon Sep 17 00:00:00 2001 From: Ignotus Peverell Date: Thu, 29 Mar 2018 18:27:12 +0100 Subject: [PATCH] Disable every-block full state validation We can re-enable it on some nodes to keep an eye on the network, but for debug builds this is too expensive. It can take over 60 sec for low-end environments, causing them to never catch up. I think this is still better than the alternative of telling everyone to run release builds. --- grin.toml | 2 +- grin/src/types.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/grin.toml b/grin.toml index c90970d22..788731ad6 100644 --- a/grin.toml +++ b/grin.toml @@ -46,7 +46,7 @@ chain_type = "Testnet2" #want to run a full chain validation. Can be: #EveryBlock - run full chain validation when processing each block (except during sync) #Disabled - disable full chain validation (just run regular block validation) -#chain_validation_mode=EveryBlock +#chain_validation_mode=Disabled #run the node in "full archive" mode (default is fast-sync, pruned node) #archive_mode = false diff --git a/grin/src/types.rs b/grin/src/types.rs index e981d3a66..bf0658a3e 100644 --- a/grin/src/types.rs +++ b/grin/src/types.rs @@ -98,7 +98,7 @@ pub enum ChainValidationMode { impl Default for ChainValidationMode { fn default() -> ChainValidationMode { - ChainValidationMode::EveryBlock + ChainValidationMode::Disabled } }