diff --git a/cmd/utils/flags.go b/cmd/utils/flags.go index a05cee99713a89bd99dbbf7db8e1a769e801a050..66508eb2b5de87479d8b910093c0af332e6ddce5 100644 --- a/cmd/utils/flags.go +++ b/cmd/utils/flags.go @@ -1352,15 +1352,15 @@ func SetEthConfig(ctx *cli.Context, nodeConfig *node.Config, cfg *ethconfig.Conf cfg.Snapshot.RetireEnabled = true } torrentVerbosity := lg.Warning - if ctx.GlobalBool(TorrentVerbosityFlag.Name) { + if ctx.GlobalIsSet(TorrentVerbosityFlag.Name) { torrentVerbosity = torrentcfg.String2LogLevel[ctx.GlobalString(TorrentVerbosityFlag.Name)] } var downloadRateStr, uploadRateStr string - if ctx.GlobalBool(TorrentDownloadRateFlag.Name) { + if ctx.GlobalIsSet(TorrentDownloadRateFlag.Name) { downloadRateStr = ctx.GlobalString(TorrentDownloadRateFlag.Name) } - if ctx.GlobalBool(TorrentUploadRateFlag.Name) { + if ctx.GlobalIsSet(TorrentUploadRateFlag.Name) { uploadRateStr = ctx.GlobalString(TorrentUploadRateFlag.Name) } var downloadRate, uploadRate datasize.ByteSize @@ -1371,7 +1371,7 @@ func SetEthConfig(ctx *cli.Context, nodeConfig *node.Config, cfg *ethconfig.Conf panic(err) } torrentPort := TorrentPortFlag.Value - if ctx.GlobalBool(TorrentPortFlag.Name) { + if ctx.GlobalIsSet(TorrentPortFlag.Name) { torrentPort = ctx.GlobalInt(TorrentPortFlag.Name) } diff --git a/turbo/snapshotsync/block_snapshots.go b/turbo/snapshotsync/block_snapshots.go index e75bee9428dcf85f1f786a2054d18e14e0f6ee39..417ca0bf732a4449a0d09b7645171c7955ed8200 100644 --- a/turbo/snapshotsync/block_snapshots.go +++ b/turbo/snapshotsync/block_snapshots.go @@ -799,7 +799,6 @@ func TransactionsHashIdx(ctx context.Context, chainID uint256.Int, sn *BlocksSna KeyCount: d.Count(), Enums: true, BucketSize: 2000, - Salt: 0, LeafSize: 8, TmpDir: tmpDir, IndexFile: filepath.Join(dir, IdxFileName(sn.From, sn.To, Transactions)), @@ -812,7 +811,6 @@ func TransactionsHashIdx(ctx context.Context, chainID uint256.Int, sn *BlocksSna KeyCount: d.Count(), Enums: true, BucketSize: 2000, - Salt: 0, LeafSize: 8, TmpDir: tmpDir, IndexFile: filepath.Join(dir, IdxFileName(sn.From, sn.To, Transactions2Block)), @@ -1067,7 +1065,6 @@ func Idx(ctx context.Context, d *compress.Decompressor, firstDataID uint64, tmpD KeyCount: d.Count(), Enums: true, BucketSize: 2000, - Salt: 0, LeafSize: 8, TmpDir: tmpDir, IndexFile: idxFilePath,