I have setup 2 nodes, 1 on testRPC and the other on geth(using cmd and mist).
How to sync both the nodes so that I can write a crowdfunding smartcontract for the accounts in both the private nodes to contribute?
I have setup 2 nodes, 1 on testRPC and the other on geth(using cmd and mist).
How to sync both the nodes so that I can write a crowdfunding smartcontract for the accounts in both the private nodes to contribute?
To my knowledge, running a node on testrpc cannot be connected to by other bodes unless they have the same genisis file. Testrpc isn't meant to be connected to by other nodes, it is meant to be a standalone node.
It would be simpler, to just create two or more private nodes and have them sync. Moreover, to get then to sync you will need to use admin.addPeers()
in the geth console, in order for a node to communicate with another node. The parameter to enter would be the enode id of the node you want to synch with.
There are tutorials explaining how to do this in more detail. Link to github guide