14 Commits
Author SHA1 Message Date
zeekayandHanzo Dev d90e7473ee Take in the sized LRU that only luxfi/node had
luxfi/node required this module and also carried its own cache package, and
the one file the two did not share was lru_sized_cache.go. It is here now,
with the cachetest helper its test uses.

It reached for utils.Zero, and luxfi/utils reaches constants, which reached
geth, which reaches crypto — a chain no cache should pull in to name the zero
value of a type parameter. The helper is four lines here instead.

lru's TestCacheWithEvictionCallback fails before and after this commit; that
directory is untouched.

Co-authored-by: Hanzo Dev <[email protected]>
2026-09-06 00:09:15 -07:00
zeekay 11f88eab72 deps: repair go.sum and take container v0.2.3
go.sum still recorded the resolution from before an earlier deps bump, so the
module did not build for anyone. With it rebuilt, lru's eviction test runs and
fails: the callback it passes to container reached a constructor that dropped
it. container v0.2.3 keeps the callback. Direct requirements are otherwise
unchanged.
2026-08-21 00:22:17 -07:00
zeekay 4350630e50 deps: bump luxfi/vm v1.2.0, sampler v1.1.0, staking v1.5.0 (relicense)
Picks up the 2026-06-06 relicensing:
- luxfi/vm v1.2.0 → Lux Ecosystem License v1.2 (was Lux Research v1.0).
  License-only retag of the extracted runtime; patent reservation
  preserved for runtime optimization surfaces, royalty-free for
  Descending Chains.
- luxfi/sampler v1.1.0 → BSD-3-Clause (was Lux Research v1.0).
  License restored to match the luxfi/node provenance (originally
  extracted from node/utils/sampler).
- luxfi/staking v1.5.0 → BSD-3-Clause (was Lux Research v1.0).
  License restored to match the luxfi/node provenance.

No code changes in this commit — go.mod/go.sum only.
2026-06-06 19:00:53 -07:00
zeekay d2804fb4d8 chore(deps): go get -u ./...
Updated dependencies to latest minor versions via go get -u + go mod tidy.
2026-06-02 11:05:29 -07:00
zeekay 8f51e356b3 deps: luxfi/crypto v1.19.0 2026-05-13 11:59:08 -07:00
zeekay 796a19531f go.mod: bump go directive to 1.26.3 (security advisory) 2026-05-12 21:28:30 -07:00
zeekay 2d458e2683 deps: update go.mod/go.sum 2026-04-19 17:04:10 -07:00
zeekay d52bfbffd1 chore: sync dependencies and format code 2026-02-04 15:44:50 -08:00
zeekay d7ae35c977 chore: sync with node requirements, add bytecache package 2026-01-12 14:44:47 -08:00
zeekay 8c43f5b82c feat: add LRU and DualMapCache types, update to metric v1.4.10 2026-01-09 00:38:55 -08:00
zeekay 6094bb5be9 chore(deps): add indirect dependencies
Add klauspost/compress and kr/text as indirect deps
2026-01-05 11:04:42 -08:00
zeekay 9b53acd1b5 chore: update go.mod 2025-12-31 22:21:31 -08:00
zeekay f225c58999 Add SizedCache and use linked hashmap for LRU
Updates Cache to use linked.Hashmap from utils package for improved
performance. Adds SizedCache for byte-size bounded caching.
2025-12-19 08:44:07 -08:00
zeekay db55166d12 Initial release 2025-12-04 08:38:33 -08:00