Skip to content

Conversation

@liran-funaro
Copy link
Contributor

@liran-funaro liran-funaro commented Jul 3, 2025

Type of change

  • Improvement

Description

  • Add Orderer endpoint to profile
    • Allow giving Orderer endpoint as pure YAML
    • Allow reuse of parsing code by other components
  • Add test
  • Update sample
  • Export reusable viper decoding hooks
  • Fix lint issues
  • Upgrade to yaml.v3

@liran-funaro liran-funaro requested review from cendhu and tock-ibm July 3, 2025 11:55
@liran-funaro liran-funaro force-pushed the orderer-endpoint branch 2 times, most recently from 5dba24c to e03c91f Compare July 3, 2025 12:14
@MayRosenbaum
Copy link
Contributor

MayRosenbaum commented Jul 3, 2025

LGTM.

Copy link
Contributor

@pasquale95 pasquale95 left a comment

Choose a reason for hiding this comment

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

LGTM.

Signed-off-by: Liran Funaro <[email protected]>
Copy link
Contributor

@cendhu cendhu left a comment

Choose a reason for hiding this comment

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

LGTM. I have a suggestion but I am merging this PR.

Comment on lines +92 to +94
// Schema 1: YAML.
// Schema 2: JSON.
// Schema 3: [id=ID,][msp-id=MspID,][broadcast,][deliver,][host=Host,][port=Port,][Host:Port].
Copy link
Contributor

Choose a reason for hiding this comment

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

I am not sure about supporting multiple schema formats, as too many choices are not always good. It would be better to support only the YAML schema within the YAML config file. Further, it would reduce the number of lines of code that we need to manage.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We need to support at least two schemas. Scehma 1 (YAML, to the request of @pasquale95), and schema 3 to support regular endpoint for legacy.

@cendhu cendhu merged commit 90a3f0d into hyperledger:main Nov 12, 2025
6 checks passed
@liran-funaro liran-funaro deleted the orderer-endpoint branch November 12, 2025 07:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants