1
0
Fork 0
mirror of https://github.com/eosswedenorg/thalos synced 2026-11-13 06:16:45 +01:00

fix(server): load state with correct pointer

This commit is contained in:
Henrik Hautakoski 2026-08-29 13:39:32 +02:00
parent 8fa7f79496
commit 7378614f7d

View file

@ -166,7 +166,7 @@ func stateLoader(conf *config.Config, start_block_flag *pflag.Flag, chainInfo fu
// Load state from cache.
ctx, cancel := context.WithTimeout(context.Background(), time.Millisecond*500)
err := cache.Get(ctx, "state", &state)
err := cache.Get(ctx, "state", state)
cancel()
// on error (cache miss) or if current_block_no_cache is set.