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

btcsuite / btcd / 8060178922
57%
master: 55%

Build:
Build:
LAST BUILD BRANCH: spellcheck
DEFAULT BRANCH: master
Ran 27 Feb 2024 05:40AM UTC
Jobs 4
Files 234
Run time 15s
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

27 Feb 2024 05:32AM UTC coverage: 56.732% (+0.007%) from 56.725%
8060178922

Pull #2128

github

kcalvinalvin
blockchain: always relock chainLock for subscription callbacks

For various b.sendNotifcation() callbacks, if a runtime panic happens,
we don't get any useful debugging information since the error that
happens first is the "unlock of unlocked mutex" error.

This is because we temporarily unlock the chainLock for callbacks and
then relock them.  However, since the relocking code is executed after
the completion of the callback, if an error happens during that
callback, we never relock the chainLock.

Switching to an anonymous function and having the unlock code as a
defer will ensure that the lock always relocks.
Pull Request #2128: blockchain: always relock chainLock for subscription callbacks

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

29202 of 51474 relevant lines covered (56.73%)

456054.78 hits per line

Jobs
ID Job ID Ran Files Coverage
1 btcec - 8060178922.1 27 Feb 2024 05:40AM UTC 15
87.45
GitHub Action Run
2 btcutil - 8060178922.2 27 Feb 2024 05:40AM UTC 21
87.25
GitHub Action Run
3 btcutilpsbt - 8060178922.3 27 Feb 2024 05:40AM UTC 13
76.43
GitHub Action Run
4 btcd - 8060178922.4 27 Feb 2024 05:40AM UTC 185
52.78
GitHub Action Run
Source Files on build 8060178922
  • Tree
  • List 234
  • Changed 43
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #2128
  • PR Base - master (#8057525961)
  • 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