Building Blockchain Projects
上QQ阅读APP看书,第一时间看更新

Creating a private network

To create a private network, you just need to give a random network ID. Private networks are usually created for development purposes. Geth also provide various flags related to logging and debugging, which are useful during development. So, instead of giving a random network ID and putting the various logging and debugging flags, we can simply use the --dev flag, which runs a private network with various debugging and logging flags enabled.