• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

spesmilo / electrum / 6482275799400448
62%
master: 63%

Build:
Build:
LAST BUILD BRANCH: fingerprint
DEFAULT BRANCH: master
Ran 18 Nov 2025 04:29PM UTC
Jobs 1
Files 88
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

18 Nov 2025 04:21PM UTC coverage: 62.165%. First build
6482275799400448

Pull #10313

CirrusCI

SomberNight
keystore: fix memory leak for LRU cache

Using `@functools.lru_cache` on an instance method behaves in interesting ways.
The cache kept a ref around for `self`, so in effect we were never GC-ing keystore objects. Effectively there was a single global cache for derive_pubkey, with keys `(keystore, for_change, n)`.

This PR now changes the caching to be per-keystore:
each ks has a cache, keyed `(for_change, n)`.
GC-ing individual keystores should now be possible, which should result in cleaning up just their own cache.

This also enables the corresponding previously silence flake8-bugbear check for `@functools.lru_cache`. (note that the check can selectively be disabled by adding a comment on the relevant line: `# noqa: B019`)
Pull Request #10313: keystore: fix memory leak for LRU cache

15 of 15 new or added lines in 1 file covered. (100.0%)

23290 of 37465 relevant lines covered (62.16%)

0.62 hits per line

Jobs
ID Job ID Ran Files Coverage
1 6482275799400448.1 18 Nov 2025 04:29PM UTC 88
62.16
Source Files on build 6482275799400448
  • Tree
  • List 88
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Build #64822757...
  • Pull Request #10313
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc