How to sync private nodes in geth and testRPC locally?

0 votes
I have setup 2 nodes on my system, 1 on testRPC and the other on geth. I want to sync both these nodes so that I can write a smart contract for both these accounts. How can I do this?
Jan 16, 2019 in Blockchain by slayer
• 29,260 points
68 views

1 answer to this question.

0 votes

HI. As much as I know, running a node on testrpc cannot be connected to by other nodes unless they have the same genesis file. TestRPC is used to run standalone nodes and not to connect other nodes.

What you can do is, create two or more private nodes and have them sync. You can use admin.addPeers() method in the geth console to connect the nodes.

answered Jan 16, 2019 by Omkar
• 68,860 points

Related Questions In Blockchain

0 votes
1 answer

How can I sync geth and testrpc private nodes locally?

node running on testrpc cannot be connected ...READ MORE

answered May 16, 2018 in Blockchain by Shashank
• 10,360 points
51 views
0 votes
1 answer

How to handle memory and processor limitations of nodes in blockchain?

Yes, that's a valid concern. The Bitcoin ...READ MORE

answered Jul 13, 2018 in Blockchain by Shashank
• 10,360 points
40 views
0 votes
1 answer
0 votes
1 answer

Truffle tests not running after truffle init

This was a bug. They've fixed it. ...READ MORE

answered Sep 11, 2018 in Blockchain by Christine
• 15,810 points
206 views
0 votes
1 answer
0 votes
0 answers

Error: Unexpected token o in JSON at position 1

I have been working with Interacting a ...READ MORE

Mar 6, 2019 in Blockchain by saeedi
• 120 points

edited Mar 6, 2019 by Omkar 630 views
–1 vote
1 answer

How to connect two different nodes in private ethereum network?

To connect two nodes, you can use ...READ MORE

answered Jan 9, 2019 in Blockchain by Omkar
• 68,860 points
353 views
0 votes
1 answer