• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In
Warning: This build has drifted.
The coverage report for this pull request build may be inaccurate because its base commit is no longer the HEAD of its target branch.
This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

    • Learn more: For more information on this, see Tracking coverage changes for pull request builds.
    • Fix now: For a quick fix, rebase this PR at GitHub. Your next report should be accurate.
    • Prevent going forward: To avoid this issue with future PRs, see these Recommended CI Configurations.
New Repo Setting:
INCLUDE COVERAGE % WITH WARNINGS ABOUT DRIFTED BUILDS?

Enabling this setting will include a (potentially inaccurate) coverage % with warning messages in status updates for drifted builds.

Adjust setting

btcsuite / btcd / 5152398437
57%
master: 55%

Build:
Build:
LAST BUILD BRANCH: spellcheck
DEFAULT BRANCH: master
Ran 02 Jun 2023 06:07AM UTC
Jobs 4
Files 224
Run time 4s
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

02 Jun 2023 06:07AM UTC coverage: 55.522% (+0.2%) from 55.273%
5152398437

Pull #1955

github

kcalvinalvin
blockchain, netsync, main, cmd/addblock: Use utxocache

This change is part of the effort to add utxocache support to btcd.

utxo cache is now used by the BlockChain struct.  By default it's used
and the minimum cache is set to 250MiB.  The change made helps speed up
block/tx validation as the cache allows for much faster lookup of utxos.
The initial block download in particular is improved as the db i/o
bottleneck is remedied by the cache.
Pull Request #1955: blockchain, cmd, netsync, main: Add utxocache

490 of 651 new or added lines in 11 files covered. (75.27%)

245 existing lines in 5 files now uncovered.

27104 of 48817 relevant lines covered (55.52%)

373604.11 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
5.23
-0.01% config.go
3
96.55
blockchain/sizehelper.go
4
0.0
0.0% netsync/blocklogger.go
5
73.2
2.62% blockchain/utxoviewpoint.go
8
0.0
0.0% netsync/manager.go
10
0.0
0.0% server.go
11
61.1
0.67% blockchain/chainio.go
15
71.37
-0.17% blockchain/chain.go
104
73.6
blockchain/utxocache.go

Uncovered Existing Lines

Lines Coverage ∆ File
7
73.2
-0.51% peer/peer.go
12
92.64
0.0% database/ffldb/db.go
18
0.0
0.0% netsync/manager.go
48
61.1
0.67% blockchain/chainio.go
160
71.37
-0.17% blockchain/chain.go
Jobs
ID Job ID Ran Files Coverage
1 btcec - 5152398437.1 02 Jun 2023 06:07AM UTC 15
87.18
GitHub Action Run
2 btcd - 5152398437.2 02 Jun 2023 06:07AM UTC 175
51.23
GitHub Action Run
3 btcutilpsbt - 5152398437.3 02 Jun 2023 06:07AM UTC 13
75.12
GitHub Action Run
4 btcutil - 5152398437.4 02 Jun 2023 06:07AM UTC 21
88.23
GitHub Action Run
Source Files on build 5152398437
  • Tree
  • List 224
  • Changed 58
  • Source Changed 0
  • Coverage Changed 13
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #1955
  • Prev Build on master (#5075515644)
  • Delete
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