Skip to content

Commit

Permalink
fix caching
Browse files Browse the repository at this point in the history
  • Loading branch information
billettc committed Sep 21, 2023
1 parent d4aba1a commit 8ba2ffa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion accountresolver/resolver.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func (r *KVDBAccountsResolver) Resolve(ctx context.Context, atBlockNum uint64, k
r.cache[key.base58()] = append([]*cacheItem{{
blockNum: keyBlockNum,
accounts: accounts,
}})
}}, r.cache[key.base58()]...)

if keyBlockNum <= atBlockNum && resolvedAccounts == nil {
resolvedAccounts = accounts
Expand Down

0 comments on commit 8ba2ffa

Please sign in to comment.