mirror of
https://github.com/mimblewimble/grin.git
synced 2025-01-21 11:31:08 +03:00
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:
parent
3e3fe6cae6
commit
107ea3c4dd
2 changed files with 2 additions and 2 deletions
|
@ -46,7 +46,7 @@ chain_type = "Testnet2"
|
||||||
#want to run a full chain validation. Can be:
|
#want to run a full chain validation. Can be:
|
||||||
#EveryBlock - run full chain validation when processing each block (except during sync)
|
#EveryBlock - run full chain validation when processing each block (except during sync)
|
||||||
#Disabled - disable full chain validation (just run regular block validation)
|
#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)
|
#run the node in "full archive" mode (default is fast-sync, pruned node)
|
||||||
#archive_mode = false
|
#archive_mode = false
|
||||||
|
|
|
@ -98,7 +98,7 @@ pub enum ChainValidationMode {
|
||||||
|
|
||||||
impl Default for ChainValidationMode {
|
impl Default for ChainValidationMode {
|
||||||
fn default() -> ChainValidationMode {
|
fn default() -> ChainValidationMode {
|
||||||
ChainValidationMode::EveryBlock
|
ChainValidationMode::Disabled
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue