Skip to content
Snippets Groups Projects
Commit 547c5f6a authored by Javier Diaz's avatar Javier Diaz
Browse files

Debugging

parent 8aed033c
No related branches found
No related tags found
2 merge requests!294Release TeraFlowSDN 4.0,!259Resolve "(CTTC) Replace DLT Gateway functionality with an opensource and Hyper Ledger v2.4+ compliant version"
......@@ -23,8 +23,8 @@ data:
PEER_ENDPOINT: "10.1.1.96:7051" #Change to required peer#
PEER_HOST_ALIAS: "peer0.org1.adrenaline.com"
CRYPTO_PATH: "/test-network/organizations/peerOrganizations/org1.adrenaline.com"
KEY_DIRECTORY_PATH: "/etc/hyperledger/fabric-keystore"
CERT_DIRECTORY_PATH: "/etc/hyperledger/fabric-signcerts"
KEY_DIRECTORY_PATH: "/etc/hyperledger/fabric-keystore/keystore"
CERT_DIRECTORY_PATH: "/etc/hyperledger/fabric-signcerts/signcerts.pem"
TLS_CERT_PATH: "/etc/hyperledger/fabric-ca-crt/ca.crt"
---
......@@ -128,9 +128,9 @@ spec:
name: dlt-config
key: CRYPTO_PATH
- name: KEY_DIRECTORY_PATH
value: "/etc/hyperledger/fabric-keystore"
value: "/etc/hyperledger/fabric-keystore/keystore"
- name: CERT_DIRECTORY_PATH
value: "/etc/hyperledger/fabric-signcerts"
value: "/etc/hyperledger/fabric-signcerts/signcerts.pem"
- name: TLS_CERT_PATH
value: "/etc/hyperledger/fabric-ca-crt/ca.crt"
volumes:
......
......@@ -112,7 +112,9 @@ async function newIdentity(): Promise<Identity> {
async function getFirstDirFileName(dirPath: string): Promise<string> {
const files = await fs.readdir(dirPath);
return path.join(dirPath, files[0]);
const filePath = path.join(dirPath, files[0]);
const realFilePath = await fs.readlink(filePath);
return path.join(dirPath, realFilePath);
}
async function newSigner(): Promise<Signer> {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment