Skip to content

Commit

Permalink
Merge "minor doc fix"
Browse files Browse the repository at this point in the history
  • Loading branch information
yacovm authored and Gerrit Code Review committed Mar 18, 2017
2 parents 0ef3510 + af57f19 commit 22c1a1f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions docs/source/peer-chaincode-devmode.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,10 @@ Start the peer in dev mode
peer node start --peer-defaultchain=false --peer-chaincodedev=true

The above command starts the peer using the default ``msp/sampleconfig``
MSP. The ``--peer-chaincodedev=true`` puts it in “dev” mode. ##Create
channels ch1 and ch2
MSP. The ``--peer-chaincodedev=true`` puts it in “dev” mode.

Create channels ch1 and ch2
---------------------------

::

Expand Down Expand Up @@ -77,9 +79,9 @@ committed.
peer chaincode invoke -n mycc -c '{"Args":["invoke","a","b","10"]}' -o 127.0.0.1:7050 -C ch1
peer chaincode invoke -n mycc -c '{"Args":["invoke","a","b","10"]}' -o 127.0.0.1:7050 -C ch2

The above invokes the chaincode using the two channels.
The above invoke the chaincode over the two channels.

::

peer chaincode query -n mycc -c '{"Args":["query","a"]}' -o 127.0.0.1:7050 -C ch1
peer chaincode invoke -n mycc -c '{"Args":["query","a"]}' -o 127.0.0.1:7050 -C ch2
peer chaincode query -n mycc -c '{"Args":["query","a"]}' -o 127.0.0.1:7050 -C ch2

0 comments on commit 22c1a1f

Please sign in to comment.