How can i add peers
I tried this command. Hi Osma. Thanks, John. When I added the peer and checked it, the peer was there. Then I quit geth and restarted it again. Then I checked for the peer. The peer disappeared. I don't know what I did wrong. You didn't do anything wrong Osma. That's how geth is programmed. When you add a peer, and exit geth, that data is cleared and that's why you cannot see the peer when you restart geth.
Related Questions In Blockchain. How to interact with a Smart Contract on private network using Web3. How does the geth ethereum platform automatically connect to the nodes that are in the main network of Ethereum?
How can I connect my main Ethereum network to Web3. How can I initiate a transaction on ethereum private network using mobile device? Truffle tests not running after truffle init This was a bug. Hyperledger Sawtooth vs Quorum in concurrency and speed Ask Summary: Both should provide similar reliability of Can we add a organisation which does not contain any nodes?
How to create a private bitcoin network using bitcore? How to add peers on a running Hyperledger Fabric? Welcome back to the World's most active Tech Community! Password must have. Please enter a valid emailid. Forgot Password? Make sure that you find the updated list of trackers. Adding trackers is really easy, just follow these steps:. This will increase the number of peers and seeders for your torrent.
Sometimes that number is insignificant, whilst other times you should see a great improvement. The result will be an increase in download speed, depending on the numbers. Torrenting is illegal in most of the western hemisphere. If you live in the U. Be warned. I am using geth console. Here Is there something wrong with the approach? If it helps I am using following command to run the geth in both machines. Your problem is probably the same genesis block.
You need to specify the same genesis json file and be sure that he is used with all commands and the init too. Set the verbosity to 10 to understand what happens. Make sure the RPC port --rpcport and the eth port --port are different in all the geth instances. If the machines are not on the same network, you'll have to use the public IP address while adding peer. To check if the instances are running on a private blockchain, check for a similar message after starting the geth instance:.
For me, the issue was that the networking defaults to the localhost IP address You should add the flag "--rpcaddr" followed by your IP address. So it should look like:. First make sure there is unrestricted connectivity between the 2 machines: e.
If that is not a problem and you are using the same genesis file then what may happen is that you set the starting difficulty to low in the genesis file. Until the difficulty adjusta blocks will be added very fast and the two nodes wont have time to sync. If you didn't put wrong IP address or port, the problem must be in the genesis block. To verify that you have the same genesis blocks on each node, use:. Check the field hash , it must be the same number on both nodes.
If it doesn't nodes wont connect. If it does match, then you have networking problems, check firewall rules, port numbers, and stuff like that. There could be also possibility that your nodes have same nodekeys.
This can happen if you copy the blockchain directory with cp -r. Then on one of the nodes you have to delete nodekey file so a new key for the node could be regenerated. Sign up to join this community. The best answers are voted up and rise to the top.
Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams?
Learn more. How to add peers on a private network? Ask Question. Asked 5 years, 4 months ago.
0コメント