[#323] cmd/node: Set default value of Blobovnicza's storage size limit

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2021-01-18 11:32:35 +03:00 committed by Alex Vanin
parent 53f8f06f2d
commit 707434efa9

View file

@ -511,6 +511,9 @@ func initShardOptions(c *cfg) {
blzSize := c.viper.GetUint64(
configPath(blzPrefix, cfgBlzSize),
)
if blzSize == 0 {
blzSize = 1 << 30 // 1 GB
}
blzShallowDepth := c.viper.GetUint64(
configPath(blzPrefix, cfgBlzShallowDepth),