Initialize Node

Import and set the canonical genesis block for nodes.

$ cd Downloads/
$ ./geth --datadir /Users/yen/Desktop/node1/data init /Users/yen/Desktop/poaOfYen.json
INFO [08-15|11:06:14] Allocated cache and file handles         database=/Users/yen/Desktop/node1/data/geth/chaindata cache=16 handles=16
INFO [08-15|11:06:14] Writing custom genesis block 
INFO [08-15|11:06:14] Successfully wrote genesis state         database=chaindata                                    hash=7527a6…a2b0e3
INFO [08-15|11:06:14] Allocated cache and file handles         database=/Users/yen/Desktop/node1/data/geth/lightchaindata cache=16 handles=16
INFO [08-15|11:06:14] Writing custom genesis block 
INFO [08-15|11:06:14] Successfully wrote genesis state         database=lightchaindata                                    hash=7527a6…a2b0e3
$ ./geth --datadir /Users/yen/Desktop/node2/data init /Users/yen/Desktop/poaOfYen.json
INFO [08-15|11:06:41] Allocated cache and file handles         database=/Users/yen/Desktop/node2/data/geth/chaindata cache=16 handles=16
INFO [08-15|11:06:41] Writing custom genesis block 
INFO [08-15|11:06:41] Successfully wrote genesis state         database=chaindata                                    hash=7527a6…a2b0e3
INFO [08-15|11:06:41] Allocated cache and file handles         database=/Users/yen/Desktop/node2/data/geth/lightchaindata cache=16 handles=16
INFO [08-15|11:06:41] Writing custom genesis block 
INFO [08-15|11:06:41] Successfully wrote genesis state         database=lightchaindata                                    hash=7527a6…a2b0e3

Creating The Genesis Block at go-ethereum GitHub

results matching ""

    No results matching ""