Sitelet https://github.com/Fantom-foundation/go-opera/commit/9593cf15dd255910e8a799de3e17f4726c36e42a
Skip to content

Commit 9593cf1

Browse files
committed
fix nil cachescale issue after loading file config
1 parent 0fb8fd2 commit 9593cf1

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎cmd/opera/launcher/config.go‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,6 @@ func mayMakeAllConfigs(ctx *cli.Context) (*config, error) {
369369
Lachesis: abft.DefaultConfig(),
370370
LachesisStore: abft.DefaultStoreConfig(cacheRatio),
371371
VectorClock: vecmt.DefaultConfig(cacheRatio),
372-
cachescale: cacheRatio,
373372
}
374373

375374
if ctx.GlobalIsSet(FakeNetFlag.Name) {
@@ -389,6 +388,8 @@ func mayMakeAllConfigs(ctx *cli.Context) (*config, error) {
389388
}
390389
}
391390

391+
cfg.cachescale = cacheRatio
392+
392393
// Apply flags (high priority)
393394
var err error
394395
cfg.Opera, err = gossipConfigWithFlags(ctx, cfg.Opera)

0 commit comments

Comments
 (0)