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.
This commit is contained in:
Ignotus Peverell 2018-03-29 18:27:12 +01:00
parent 3e3fe6cae6
commit 107ea3c4dd
No known key found for this signature in database
GPG key ID: 99CD25F39F8F8211
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -98,7 +98,7 @@ pub enum ChainValidationMode {
impl Default for ChainValidationMode {
fn default() -> ChainValidationMode {
ChainValidationMode::EveryBlock
ChainValidationMode::Disabled
}
}