Skip to content

refactor(fabric)!: remove unused placeholder types from services/state - #2092

Merged
SaidAltury-ibm merged 1 commit into
hyperledger-labs:mainfrom
mbrandenburger:refactor/2015-state-placeholders
Oct 14, 2026
Merged

SaidAltury-ibm merged 1 commit into
hyperledger-labs:mainfrom
mbrandenburger:refactor/2015-state-placeholders

Conversation

@mbrandenburger

@mbrandenburger mbrandenburger commented Oct 14, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Deletes state.EndorseTransaction, state.Bytes, state.QueryIteratorInterface and state.CommonIteratorInterface from platform/fabric/services/state. No module in the repo references them, and neither iterator interface has an implementation.
  • Adds Godoc to the remaining state interfaces (Serializable, State, AutoLinearState, EmbeddingState, LinearState.SetLinearID) and to Vault.GetStateCertification.

Closes #2015

Delete or deprecate

The types are deleted now (refactor(fabric)!: with a BREAKING CHANGE: footer) rather than deprecated first. #2081 removed unused types the same way, and no downstream use exists: Panurus imports fabric/services/state only in integration/token/common/sdk/fxdlog/sdk.go, and that file uses only state.VaultService. CommonIteratorInterface goes in this PR as well, since nothing references it once QueryIteratorInterface is removed.

Migration: use any or *endorser.Transaction for EndorseTransaction and []byte for Bytes. The iterator interfaces have no replacement.

Test plan

  • go vet ./... in all four modules (root, integration, libp2p host, cc/query)
  • go test ./platform/fabric/services/state/...
  • make checks
  • Confirm CI is green

Delete EndorseTransaction, Bytes, QueryIteratorInterface and
CommonIteratorInterface. No module in the repository references them and
no implementation of either iterator interface exists. Document the
remaining state interfaces and Vault.GetStateCertification.

Closes hyperledger-labs#2015

BREAKING CHANGE: state.EndorseTransaction, state.Bytes,
state.QueryIteratorInterface and state.CommonIteratorInterface are
removed. Use any or *endorser.Transaction for EndorseTransaction and
[]byte for Bytes; the iterator interfaces have no replacement.

Signed-off-by: Marcus Brandenburger <bur@zurich.ibm.com>
@github-actions

Copy link
Copy Markdown

Hey @mbrandenburger 👋 thanks for the PR!
I'm your friendly PR Helper Bot 🤖 and I'll be riding shotgun on this one, keeping track of your PR's status to help you get it approved and merged.

This comment updates automatically as you push changes -- think of it as your PR's live scoreboard!
Here's the latest:


PR Checks

✅ DCO Sign-off -- All commits have valid sign-offs. Nice work!


❌ GPG Signature -- Heads up! The following commits don't have a verified GPG signature:

  • e47af91 refactor(fabric)!: remove unused placeholder types from services/state

You'll need to sign your commits with GPG (e.g. git commit -S). See the Signing Guide for a step-by-step walkthrough.


✅ Merge Conflicts -- No merge conflicts detected. Smooth sailing!


✅ Issue Link -- Linked to #2015 (assigned to you).


⏳ All checks must pass before this PR can be reviewed. You've got this!

@github-actions github-actions Bot added the status: needs revision The pull request requires changes from the author before it can be reviewed or merged label Oct 14, 2026
@mbrandenburger mbrandenburger added this to the 26Q4 milestone Oct 14, 2026
@mbrandenburger mbrandenburger added status: needs review The pull request is ready for maintainer review and removed status: needs revision The pull request requires changes from the author before it can be reviewed or merged labels Oct 14, 2026
@github-actions github-actions Bot added status: needs revision The pull request requires changes from the author before it can be reviewed or merged and removed status: needs review The pull request is ready for maintainer review labels Oct 14, 2026
@mbrandenburger mbrandenburger added status: needs review The pull request is ready for maintainer review and removed status: needs revision The pull request requires changes from the author before it can be reviewed or merged labels Oct 14, 2026

@SaidAltury-ibm SaidAltury-ibm left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @mbrandenburger , LGTM

@SaidAltury-ibm
SaidAltury-ibm merged commit 6877f21 into hyperledger-labs:main Oct 14, 2026
@mergify

mergify Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

This pull request does not currently match the merge queue conditions, so it cannot be queued from here. The box comes back if it matches again.

@mbrandenburger
mbrandenburger deleted the refactor/2015-state-placeholders branch October 14, 2026 12:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: needs review The pull request is ready for maintainer review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

refactor(fabric): remove unused placeholder types from services/state

2 participants