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

btcsuite / btcd / 5936174185
55%
master: 55%

Build:
Build:
LAST BUILD BRANCH: spellcheck
DEFAULT BRANCH: master
Ran 22 Aug 2023 08:13AM UTC
Jobs 4
Files 223
Run time 9s
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

22 Aug 2023 08:10AM UTC coverage: 55.28% (-0.09%) from 55.37%
5936174185

Pull #1971

github

kcalvinalvin
main: cfindex related sanity checks when enabled with pruning

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

cfIndex is a useful index even if the node has been pruned so it's
allowed to be enabled together with pruning.  However, if the user had
disabled cfindex and enabled pruning, it's not possible to generate
them.  In this case, we tell the user that it's impossible unless the
user deletes and start anew.

Additionally, if the user had enabled cfindex and also enabled pruning
from the start, don't let the user turn the cfindex off without dropping
it explicitly.  This is to make sure that the user isn't left at an
inconsistent state where the cfindex isn't able to catch up to the tip
because the blocks have already been pruned.
Pull Request #1971: main, wire, blockchain, indexers, ffldb: Add pruning

85 of 252 new or added lines in 11 files covered. (33.73%)

4 existing lines in 1 file now uncovered.

26925 of 48707 relevant lines covered (55.28%)

7872.18 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
4
0.0
0.0% server.go
8
36.14
-0.56% blockchain/indexers/addrindex.go
8
0.0
0.0% blockchain/indexers/cfindex.go
8
0.0
0.0% blockchain/indexers/txindex.go
9
59.71
-0.73% blockchain/chainio.go
9
0.26
-0.0% rpcserver.go
10
92.49
-1.14% database/ffldb/blockio.go
12
70.79
-0.78% blockchain/chain.go
20
91.28
-1.36% database/ffldb/db.go
21
5.1
-0.14% config.go
58
2.01
-0.48% btcd.go

Uncovered Existing Lines

Lines Coverage ∆ File
4
0.26
-0.0% rpcserver.go
Jobs
ID Job ID Ran Files Coverage
1 btcec - 5936174185.1 22 Aug 2023 08:13AM UTC 15
87.49
GitHub Action Run
2 btcutil - 5936174185.2 22 Aug 2023 08:13AM UTC 21
88.26
GitHub Action Run
3 btcd - 5936174185.3 22 Aug 2023 08:13AM UTC 174
50.85
GitHub Action Run
4 btcutilpsbt - 5936174185.4 22 Aug 2023 08:13AM UTC 13
76.43
GitHub Action Run
Source Files on build 5936174185
  • Tree
  • List 223
  • Changed 49
  • Source Changed 0
  • Coverage Changed 14
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #1971
  • Prev Build on master (#5872394378)
  • 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

© 2025 Coveralls, Inc