Tanmay Bhattacharya
Tanmay Bhattacharya

Reputation: 551

Ethereum sidechains

Note: wherein each container acts as a node.

But how do I do the same thing for my private chain?

Upvotes: 1

Views: 130

Answers (1)

wolfson109
wolfson109

Reputation: 934

You need to configure truffle to point to your testnet. The truffle config docs describe how to do this in detail. Essentially you want to put the following in your truffle.js file:

networks: {
    test: {
        host: "<ip address of one of your docker containers>",
        port: <port number your container is listening on>,
        network_id: "*"  // match any network id
    }
}

Upvotes: 1

Related Questions