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.03k stars 979 forks source link

How to set marbles for multipeers which are in different machines #192

Closed aithavinay closed 6 years ago

aithavinay commented 6 years ago

When trying the marbles for multipeer system ,marble container is not running in all peers but database is replicating..

dshuffma-ibm commented 6 years ago

are you trying to run multiple marble's chaincode? or just multiple marbles node js apps, or both?

as for the chaincode:

  1. make sure all your peers have joined some common channel you will be using
  2. install the chaincode on each peer.
  3. instantiate the cc on the common channel (you only need to send the instantiate to 1 peer)
  4. done

as for the node js app, just try starting 1 app and pointing it at your favorite peer for now. edit the config files.