5

I'm trying to change the settings for my truffle develop node, but the values in truffle.js don't seem to work. Here's what I have there:

  networks: {
    development: {
      host: "127.0.0.10",
      port: 95455,
      network_id: "*", // Match any network id
      gas: 47123880,
      gasPrice: 1000
    }
  }

Note that I tried to change the host and port values, but I still see Truffle Develop started at http://localhost:9545/ when I start truffle develop. So I suppose the gas value doesn't affect anything as well.

1
$ truffle develop

starts an interactive console that also starts a testnet locally on port 9545 for you with default accounts. This is for quick testing if you don't have any node running.

If you want to start an interactive console and attach to an already existing node:

$ truffle console

This will look for network 'development' in your configuration file, unless your specify the --network option. See reference here

1

If your on Linux, type which truffle I get this /home/dave/.nvm/versions/node/v8.11.1/bin/truffle then open that file in a text editor, and find the variable called defaultEtherBalance, I found it on line 581569. Save and restart truffle develop!

  • you can also increase the block gas limit here, from the top of the file, i think its the first search result for gas: – Barrard Mar 11 at 0:35
0

Now that our configuration is set up, we can now deploy to the live network. When deploying, we must specifically ask for the live network or else Truffle will fall back to the default configuration. To do so, we can deploy with the following command:

$ truffle migrate --networkid 13

This mines Ethereum public network . Ethereum public network create then network id change .

thanks

  • I was asking specifically about truffle develop. When I tried truffle migrate with these settings, it, predictably, failed. – ulu Feb 18 '18 at 14:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.