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

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
remotes/KirillovDenis/release/v0.21.1
Leonard Lyubich 2021-01-18 11:32:35 +03:00 committed by Alex Vanin
parent 53f8f06f2d
commit 707434efa9
1 changed files with 3 additions and 0 deletions

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),