I am trying to add one node to my local ethereum , I am running the first node with :
geth --port 30303 --networkid 1234 --nodiscover --datadir ethereum/paradox --rpc --rpcport 8545 --rpccorsdomain "http://localhost:8000" --allow-insecure-unlock --ethstats paradox:s3cr3t@localhost:3000 --rpcapi "eth,net,web3,personal,miner"
My Second node with :
geth --datadir "$ethereum_home/sample" --nodiscover --networkid 1234 --port 30304
they both points to the same genesis block.
When i run the command "address" it returns true but the It does not show peers when I run "admin.peer"
My genesis file:
{ "config": { "chainId": 4224, "homesteadBlock": 0, "eip150Block": 0, "eip150Hash": "0x0000000000000000000000000000000000000000000000000000000000000000", "eip155Block": 0, "eip158Block": 0, "byzantiumBlock": 0, "constantinopleBlock": 0, "petersburgBlock": 0, "istanbulBlock": 0, "ethash": {} }, "nonce": "0x0", "timestamp": "0x5f350017", "extraData": "0x0000000000000000000000000000000000000000000000000000000000000000", "gasLimit": "0x47b760", "difficulty": "0x80000", "mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000", "coinbase": "0x0000000000000000000000000000000000000000", "alloc": { "0000000000000000000000000000000000000000": { "balance": "0x1" }, "00000000000000000000000000000000000000ff": { "balance": "0x1" } }, "number": "0x0", "gasUsed": "0x0", "parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000" }
The interesting thing is when I stop both nodes and restart again and then do "address" it shows another node in the peer array but just for a second and if I run command admin.peer it shows noting