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

hyperledger / fabric-x-committer / 36708841439
91%
main: 91%

Build:
Build:
LAST BUILD BRANCH: query-tls-refresh-ignore-older-config
DEFAULT BRANCH: main
Ran 30 Sep 2026 11:34AM UTC
Jobs 3
Files 141
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

30 Sep 2026 11:22AM UTC coverage: 90.691%. First build
36708841439

Pull #842

github

liran-funaro
[sidecar] Make the block store transaction ID index optional

#### Type of change

- New feature
- Improvement (improvement to code, performance, etc)

#### Description

- Add `ledger.disable-tx-id-index` to the sidecar config, defaulting to false so the block
  store keeps indexing transaction IDs as before.
- Take `*LedgerConfig` in `newBlockStore` instead of the path and sync interval, and build
  the `blkstorage.IndexConfig` from it.
- Document the option in the sample config and under the Sidecar section of
  `docs/performance-tuning.md`.

#### Additional details (Optional)

The flag is opt-out rather than opt-in so that a zero-valued `LedgerConfig`, which is how
tests and any other in-Go caller build one, still indexes everything.

The block number index is deliberately not configurable. The block store reads the last
block header through it when it opens a non-empty ledger, so a sidecar without it cannot
recover from a restart. `TestBlockStoreReopenWithoutTxIDIndex` pins that reopen path.

Disabling the transaction ID index costs `GetBlockByTxID` and `GetTxByID`, so it suits a
sidecar that serves neither. The index also selects the block store's on-disk format, so
changing the setting requires an empty ledger directory.

#### Related issues

- resolves #784

Signed-off-by: Liran Funaro <liran.funaro@gmail.com>
Pull Request #842: [sidecar] Make the block store transaction ID index optional

9 of 10 new or added lines in 2 files covered. (90.0%)

9772 of 10775 relevant lines covered (90.69%)

10528.03 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
82.76
service/sidecar/block_store.go
Jobs
ID Job ID Ran Files Coverage
1 core-db-test - 36708841439.1 30 Sep 2026 11:36AM UTC 108
48.95
GitHub Action Run
2 unit-test - 36708841439.2 30 Sep 2026 11:35AM UTC 95
86.2
GitHub Action Run
3 db-test - 36708841439.3 30 Sep 2026 11:34AM UTC 141
78.39
GitHub Action Run
Source Files on build 36708841439
  • Tree
  • List 141
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #842
  • PR Base - main (#36705432257)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc