config: replace VerifyBlocks with SkipBlockVerification
It directly affects node security and the default here MUST BE the safe choice which is to do the verification. Otherwise it's just dangerous, absent any VerifyBlocks configuration we'll get an insecure node. This option is not supposed to be frequently used and it doesn't affect the ability to process blocks, so breaking compatibility (in a safe manner) should be OK here.
This commit is contained in:
parent
d92f35664b
commit
4e7cee4e12
20 changed files with 28 additions and 32 deletions
|
@ -132,7 +132,7 @@ func newChain() (*core.Blockchain, error) {
|
|||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
unitTestNetCfg.ApplicationConfiguration.VerifyBlocks = false
|
||||
unitTestNetCfg.ApplicationConfiguration.SkipBlockVerification = true
|
||||
zapCfg := zap.NewDevelopmentConfig()
|
||||
zapCfg.Level = zap.NewAtomicLevelAt(zapcore.InfoLevel)
|
||||
log, err := zapCfg.Build()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue