I am setting up a private Ethereum network using puppeth
whic creates the sealer nodes on various servers.
To aid peer discovery, it has been suggested that we include a list of enodes
in the file static-nodes.json
for geth
to use.
Where do we place static-nodes.json
?
The datadir directory containing folders
geth
andkeystore, and the file
geth.ipc`The datadir/geth directory containing folders
chaindata
,lightchaindata
,nodes
, and the filesLOCK
,nodekey
,transactions.rlp
?
Additionally, where do we place trusted-nodes.json
? Can we let geth
use both files trusted-nodes.json
and static-nodes.json
, or must we choose one of the two to use?
Does the nodes added using admin.addPeer
gets stored somewhere, or must we re-add these nodes again if we restart geth
?