If all the peers stop working, how to make sure that the data is not lost?
Thanks!
I have verified my idea through testing, but To be precise, it should be called network restore ranther than reuse,if you have the genesis.block,channl.tx,and peer crypto artifacts, and /var/hyperledger/production of orderer and peer,you can restore same network, and you need not to create channel again and join channle again,the data will not lose.
I have push the project to github https://github.com/iamlzw/reuse-previous-network-data.git ,and you can pull it and test,if you start this network ,you need not create channel and join channel and so on ,you can just query or invoke,if you stop this network,you can start it again,and you can find the data not lose,you will get same result throgh by chaincode query.
you can reference https://hyperledger-fabric.readthedocs.io/en/release-1.4/chaincode4ade.html#install-hyperledger-fabric-samples
hope these can help you