Bsc: enable syncmode=snap by default #3973

This commit is contained in:
Alex Sharov 2022-04-26 13:06:18 +07:00 committed by GitHub
parent e04f7fc9f8
commit 61515ed21e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -301,10 +301,8 @@ func SyncModeByChainName(chain, syncCliFlag string) SyncMode {
return SnapSync
}
switch chain {
case networkname.MainnetChainName, networkname.GoerliChainName:
case networkname.MainnetChainName, networkname.BSCChainName, networkname.GoerliChainName:
return SnapSync
case networkname.BSCChainName:
return FastSync
default:
return FastSync
}