IBM-Blockchain-Archive / marbles

WARNING: This repository is no longer maintained ⚠️ This repository will not be updated. The repository will be kept available in read-only mode.
Apache License 2.0
1.02k stars 977 forks source link

should be able to use the hfc key store location without copying cred files #175

Closed dshuffma-ibm closed 6 years ago

dshuffma-ibm commented 6 years ago

marbles (for a local fabric network) currently copies creds from a folder generated by fabric-samples. this scheme no longer works since the cred files are now uniquely generated. (marbles can't find the cred files anymore) this prevents any operation that needs the so called admin certificates, such as install/instantiate.

marbles should be more flexible and setup the SDK to use the generated files. need to change the helper.getKvsPath() code.

symptoms look like: Error: ENOENT: no such file or directory, open '/Users/oldgeezer7/.hfc-key-store/giberish260ad477551ed4a5a991e2130f8008a0bf96e4e4084cd097a74f8c-priv'

vinayakkulkarni commented 6 years ago
Vinayaks-MacBook-Pro:scripts work$ mkdir /Users/work/.hfc-key-store/
Vinayaks-MacBook-Pro:scripts work$ ln -s /Users/work/Development/blockchain/fabric-samples/fabcar/hfc-key-store/ /Users/work/.hfc-key-store/

Symlinking does the trick for now.

dshuffma-ibm commented 6 years ago

done in v5.0