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

Neptune-Crypto / neptune-core / 17975943871
75%

Build:
DEFAULT BRANCH: master
Ran 24 Sep 2025 01:16PM UTC
Jobs 1
Files 240
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

24 Sep 2025 12:00PM UTC coverage: 73.634% (+0.02%) from 73.613%
17975943871

push

github

web-flow
fix: ensure block data written before db (#703)

fixes #471

The issue was that block records were being written to DB before written to
blkXX.dat files on disk, which resulted in mis-match when power is lost during a
call to ArchivalState::store_block().  Upon startup, a SIGBUS occurs when
reading the mmap'd data.

Fixes:

1. root cause: calls mmap.flush() after writing block to ensure it is written to
disk before writing matching record to DB.

2. avoid SIGBUS: verifies we do not attempt to read past end of file.
Returns error with diagnostic info if so, which gets logged.

Co-authored-by: danda <dan-da@users.noreply.github.com>

9 of 16 new or added lines in 1 file covered. (56.25%)

4 existing lines in 3 files now uncovered.

24853 of 33752 relevant lines covered (73.63%)

641084.7 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
7
92.37
0.01% neptune-core/src/state/archival_state.rs

Uncovered Existing Lines

Lines Coverage ∆ File
1
56.52
-0.2% neptune-core/src/protocol/peer.rs
1
87.18
-2.56% neptune-core/src/state/mempool/upgrade_priority.rs
2
91.14
-1.27% neptune-core/src/application/job_queue/queue.rs
Jobs
ID Job ID Ran Files Coverage
1 17975943871.1 24 Sep 2025 01:16PM UTC 240
73.63
GitHub Action Run
Source Files on build 17975943871
  • Tree
  • List 240
  • Changed 6
  • Source Changed 1
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #17975943871
  • 85f62003 on github
  • Prev Build on master (#17975592845)
  • Next Build on master (#18009448670)
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