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

spesmilo / electrum / 4867030291054592
60%
master: 63%

Build:
Build:
LAST BUILD BRANCH: fingerprint
DEFAULT BRANCH: master
Ran 09 Jun 2025 01:41PM UTC
Jobs 5
Files 87
Run time 2min
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

09 Jun 2025 01:31PM UTC coverage: 59.755% (-0.02%) from 59.774%
4867030291054592

Pull #9926

CirrusCI

SomberNight
interface: faster chain resolution: add headers_cache

We try to predict the next headers the interface will ask for,
and request them ahead of time, to be kept in the headers_cache.

This saves network latency/round-trips, for a bit more memory usage
and in some cases for more bandwidth.
Note that due to PaddedRSTransport.WAIT_FOR_BUFFER_GROWTH_SECONDS,
latency saved here can be longer than "real" network latency.

This speeds up
- binary search greatly,
- backwards search to a small degree
  (although not that much as its algorithm should be changed a bit to make it cache-friendly)
- catch-up greatly, if it's <10 blocks behind

What remains is to speed up catch-up in case we are behind by many thousands of block.
That behaviour is left unchanged here. The issue there is that we request chunks sequentially.
So e.g. 1 chunk (2016 blocks) per 1 second.
Pull Request #9926: interface: faster chain resolution: add headers_cache

15 of 41 new or added lines in 2 files covered. (36.59%)

1 existing line in 1 file now uncovered.

21912 of 36670 relevant lines covered (59.75%)

2.99 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
26
35.44
-0.28% electrum/interface.py

Uncovered Existing Lines

Lines Coverage ∆ File
1
35.44
-0.28% electrum/interface.py
Jobs
ID Job ID Ran Files Coverage
1 4867030291054592.1 09 Jun 2025 01:41PM UTC 87
59.72
2 4867030291054592.2 09 Jun 2025 01:41PM UTC 87
59.69
3 4867030291054592.3 09 Jun 2025 01:41PM UTC 87
59.72
4 4867030291054592.4 09 Jun 2025 01:41PM UTC 87
59.73
5 4867030291054592.5 09 Jun 2025 02:03PM UTC 87
59.73
Source Files on build 4867030291054592
  • Tree
  • List 87
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Build #48670302...
  • Pull Request #9926
  • PR Base - master (#64199283...)
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