Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FAB-17439] Expose peer's MSPID to chaincode as an env var CORE_PEER_MSPID #549

Merged
merged 1 commit into from
Jan 27, 2020

Conversation

caod123
Copy link

@caod123 caod123 commented Jan 24, 2020

Type of change

  • New feature

Description

See FAB-17439

@caod123 caod123 requested a review from a team as a code owner January 24, 2020 21:47
CORE_PEER_LOCALMSPID

Signed-off-by: Danny Cao <dcao@us.ibm.com>
@@ -20,6 +20,7 @@ export CORE_PEER_TLS_ENABLED="true"
export CORE_TLS_CLIENT_CERT_FILE="$ARTIFACTS/client.crt"
export CORE_TLS_CLIENT_KEY_FILE="$ARTIFACTS/client.key"
export CORE_PEER_TLS_ROOTCERT_FILE="$ARTIFACTS/root.crt"
export CORE_PEER_LOCALMSPID="$(jq -r .mspid "$ARTIFACTS/chaincode.json")"
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not opposed to adding this line here -- though it's odd to add it only in the binary external builder and not in the golang one, especially since no chaincode (as yet) consumes this variable.

@jyellick jyellick merged commit 392ecda into hyperledger:master Jan 27, 2020
caod123 added a commit to caod123/fabric that referenced this pull request Jan 27, 2020
…er#549)

CORE_PEER_LOCALMSPID

Signed-off-by: Danny Cao <dcao@us.ibm.com>
denyeart pushed a commit that referenced this pull request Jan 27, 2020
CORE_PEER_LOCALMSPID

Signed-off-by: Danny Cao <dcao@us.ibm.com>
jimthematrix pushed a commit to jimthematrix/fabric that referenced this pull request May 5, 2022
…er#549)

CORE_PEER_LOCALMSPID

Signed-off-by: Danny Cao <dcao@us.ibm.com>
Signed-off-by: Xin Li <xin.li@swirlds.com>
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.

3 participants