Initialize private chain

Configure private chain

geth.exeCreate a folder in the same directory, the name is random, my name issloweth

new folder

In slowethCreate a folder named genesis.jsonprofile

New profile

The content of the configuration file is

{
	"config":{
		"chainId": 666
	},
	"difficulty": "0x20000",
	"gasLimit": "0x2fefd8",
	"alloc":{}
}

Here the simple private chain is configured.

initialization

geth.exeOpen the command line window in the same directory and
enter the following statement

geth --datadir sloweth init sloweth/genesis.json

Enter to initialize the private chain

Initialize private chain

After initialization is complete slowethfolder will be generated gethand keystoretwo folders

loading finished

They hold private chain data.

Guess you like

Origin www.cnblogs.com/jackden/p/12755510.html