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

hyperledger / fabric-x-common / 36576186420
82%
main: 82%

Build:
Build:
LAST BUILD BRANCH: sampleconfig-committer-acls
DEFAULT BRANCH: main
Ran 29 Sep 2026 01:37PM UTC
Jobs 1
Files 199
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

29 Sep 2026 01:35PM UTC coverage: 82.041% (+0.04%) from 82.004%
36576186420

Pull #191

github

cendhu
[committerpb] Add the abort snapshot transaction status and key encoding

#### Type of change

- New feature

#### Description

- `SnapshotState.Status` gains `ABORTED = 6`: terminal, meaning the snapshot will not be
  hashed. Written only by the validator-committer when an abort snapshot transaction
  commits, the rule `CHECKPOINTED` already follows, and never by the snapshot hasher.
- `MALFORMED_SNAPSHOT_INVALID_ABORT_KEY = 122`: an abort transaction's read-write key does
  not decode as an abort key.
- `REJECTED_SNAPSHOT_ABORT_NO_SUCH_SNAPSHOT = 123`: a well-formed abort key naming a block
  that is not the snapshot awaiting its checkpoint, or one whose lifecycle is already
  closed. Both are per-transaction rejections rather than failures, because the submitter
  chose the block number and local state is not in question.
- `MALFORMED_SNAPSHOT_NOT_MARKER_ONLY`'s comment is updated: a `_snapshot` TX is now valid
  in two shapes, a marker-only snapshot request and an abort carrying exactly one
  read-write.
- `SnapshotAbortKey(blockNum)` builds the `_snapshot` write key of an abort snapshot
  transaction: the `\xffabort/` prefix followed by the block number, encoded order-preserving
  as a checkpoint key is. The leading raw `0xff` byte cannot occur in valid UTF-8 transaction
  IDs, which the sidecar already enforces; no hex-ID assumption is needed.
- `IsSnapshotAbortKey` inspects the prefix only, so a prefixed key whose block number does
  not decode is rejected as a malformed abort rather than mistaken for a snapshot request.
- `BlockNumFromSnapshotAbortKey` decodes the block number and rejects trailing bytes rather
  than ignoring them: accepting a prefix would attribute the abort to the wrong snapshot.
- `snapshot.pb.go` and `status.pb.go` regenerated via `make proto`.

#### Additional details (Optional)

The key encoding lives in this module rather than in fabric-x-committer because the only
legitimate submitter of an abort is an administrator, w... (continued)
Pull Request #191: [committerpb] Add the abort snapshot transaction status and key encoding

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

13677 of 16671 relevant lines covered (82.04%)

0.82 hits per line

Jobs
ID Job ID Ran Files Coverage
1 36576186420.1 29 Sep 2026 01:37PM UTC 199
82.04
GitHub Action Run
Source Files on build 36576186420
  • Tree
  • List 199
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #191
  • PR Base - main (#35709650233)
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