GenerateConfig

First download binary file genaccount,Select the corresponding . Zip according to the platform you use, extract the . Zip file to get the genaccount and configuration file config.json.

The second step is to modify file config.json. According to the number of input deployment nodes, add the following contents: name node name; IP address corresponding to IP node; P2P discovery port when connecting nodes; password to generate the local private key.

[ {

"name": "dreptest1",

"ip": "192.168.1.10",

"port": 55555,

"password": "123"

}, {

"name": "dreptest2",

"ip": "192.168.1.20",

"port": 55555,

 "password": "123"

}, . . . {

"name": "dreptest4",

"ip": "192.168.1.30",

"port": 55555,

 "password": "123"

}, {

"name": "dreptest5",

"ip": "192.168.1.40",

"port": 55555,

 "password": "123"

} ]

Step 3: put genaccount and config.json in the same directory, run. / genaccount and generate the corresponding configuration file. Copy the configuration file corresponding to the node name to the default working directory of each node.

linux for example: copy files:config.json drepnode keystore to ~/.drep