I've tried placing a static-nodes.json
file in the data directory and I've tried specifying the static node in a TOML file. Neither approach seemed to have the desired effect.
Ethereum Stack Exchange is a question and answer site for users of Ethereum, the decentralized application platform and smart contract enabled blockchain. It only takes a minute to sign up.
Sign up to join this community
<datadir>/static-nodes.json
file for this private chain. Endpoints successfully open and the RLPx listener starts, butnet.peerCount
returns zero. It should always return at least "1". To be candid, the static node could be a red herring and 1.6 might have a problem with my genesis file, as I understand that its format has changed?invalid genesis file: hex string has odd length
<datadir>/static-nodes.json
concern might be a red herring? Not sure of that either. Is<datadir>/static-nodes.json
no longer supported?static-nodes.json
not being supported anymore. To be safe, you could try adding the nodes using--bootnodes
: ethereum.stackexchange.com/a/2709/52. If that works, then it might rule out the problem with the genesis file.