concept net in category hyperledger

appears as: net
Programming Hyperledger Fabric: Creating Permissioned Blockchains

This is an excerpt from Manning's book Programming Hyperledger Fabric: Creating Permissioned Blockchains.

There are two modes a peer node can be run in and they are known as the dev and net modes. The config setting which controls the mode is given by the chaincode.mode field in core.yaml and can be overridden using the corresponding CORE_CHAINCODE_MODE environment variable. The chaincode.mode is set to net in the core.yaml that ships with Fabric so that becomes the default mode of the peer. The factory installed core.yaml provides a good explanation of the two modes:

# There are 2 modes: "dev" and "net".
# In dev mode, user runs the chaincode after starting peer from
# command line on local machine.
# In net mode, peer will run chaincode in a docker container.
mode: net

The net mode is intended to be used in production. During development phase of the project, I have found the dev mode to be invaluable because of following two reasons:

This chapter has two main objectives: containerize the network of previous chapter and migrate peer nodes to net mode. In addition we will show in this chapter how to re-use or migrate the entire corpus of data of previous chapter so that we don’t start with an empty ledger and do not have to re-do all the transactions we committed in previous chapter.