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

hyperledger / fabric-x-common / 26457337030
83%

Build:
DEFAULT BRANCH: main
Ran 26 May 2026 03:19PM UTC
Jobs 1
Files 184
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

26 May 2026 03:16PM UTC coverage: 82.663% (-0.04%) from 82.705%
26457337030

push

github

web-flow
Fix newest iterator on empty file ledger (#116)

#### Type of change

- Bug fix

#### Description

When `SeekPosition_Newest` is used on an empty `FileLedger`, `Iterator`
computed `Height - 1`, underflowing to `math.MaxUint64`. This makes the
iterator request an impossible block number instead of waiting from
block zero.

- Guard newest seek when ledger height is zero
- Start empty-ledger newest iterators at block zero
- Add regression coverage for the empty-ledger case

#### Related

Companion for hyperledger/fabric-x-committer#601.

Signed-off-by: Senthilnathan <cendhu@gmail.com>

4 of 4 new or added lines in 1 file covered. (100.0%)

8 existing lines in 4 files now uncovered.

14848 of 17962 relevant lines covered (82.66%)

0.92 hits per line

Coverage Regressions

Lines Coverage ∆ File
3
95.0
-1.07% common/deliverclient/blocksprovider/bft_deliverer.go
2
94.65
-0.82% common/deliverclient/blocksprovider/bft_censorship_monitor.go
2
93.81
-2.06% common/deliverclient/blocksprovider/block_receiver.go
1
85.71
-0.68% common/channelconfig/bundle.go
Jobs
ID Job ID Ran Files Coverage
1 26457337030.1 26 May 2026 03:19PM UTC 184
82.66
GitHub Action Run
Source Files on build 26457337030
  • Tree
  • List 184
  • Changed 5
  • Source Changed 0
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 855f12b2 on github
  • Prev Build on main (#26084144288)
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