2

I am following this tutorial http://truffleframework.com/tutorials/building-dapps-for-quorum-private-enterprise-blockchains for Quorum installation..

I have successfully installed vargrant(Installed Version: 1.8.1).

vagrant ssh

It open up a terminal in virtual machine.

    ubuntu@ubuntu-xenial:~/quorum-examples/7nodes$ ./raft-init.sh
    [*] Cleaning up temporary data directories
    [*] Configuring node 1
    INFO [11-22|09:48:12] Allocated cache and file handles         database=/home/ubuntu/quorum-examples/7nodes/qdata/dd1/geth/chaindata cache=16 handles=16
    INFO [11-22|09:48:12] Writing custom genesis block 
    INFO [11-22|09:48:12] Successfully wrote genesis state           database=chaindata                                                     hash=c23b4e…8b1b71
    INFO [11-22|09:48:12] Allocated cache and file handles         database=/home/ubuntu/quorum-examples/7nodes/qdata/dd1/geth/lightchaindata cache=16 handles=16
    INFO [11-22|09:48:12] Writing custom genesis block 
    INFO [11-22|09:48:12] Successfully wrote genesis state         database=lightchaindata                                                    hash=c23b4e…8b1b71
            ....

   ubuntu@ubuntu-xenial:~/quorum-examples/7nodes$ ./raft-start.sh
   [*] Starting Constellation nodes
   [*] Starting node 1
   [*] Starting node 2
   [*] Starting node 3
   [*] Starting node 4
   [*] Starting node 5
   [*] Starting node 6
   [*] Starting node 7
   [*] Waiting for nodes to start
   [*] Sending first transaction
   Contract transaction send: TransactionHash:   0xe6d33f3db00fc9181496b004c13ed484c3a76cdd8422a423785a3bbd52828c02 waiting to be mined...
  true

Thus I have successfully completed the Quorum setup.

I am trying to create a new truffle project.

  truffle init bare 

I have config the truffle.js as follows:-

 module.exports = {
      networks: {
         development: {
             host: "localhost",
             port: 22000, // was 8545
             network_id: "*" // Match any network id
        }
    }

};

I have created the SimpleStorage.sol contract and trying to deploy.On deploying it raises the following issue.

   truffle migrate --reset

   Using network 'development'.

   Running migration: 1_initial_migration.js
   Deploying Migrations...
   ... undefined
   Error encountered, bailing. Network state unknown. Review successful  transactions manually.
   Error: Gas price not 0
             at Object.InvalidResponse (/usr/lib/node_modules/truffle/build/cli.bundled.js:37312:16)
             at /usr/lib/node_modules/truffle/build/cli.bundled.js:220420:36
             at /usr/lib/node_modules/truffle/build/cli.bundled.js:72910:11
             at /usr/lib/node_modules/truffle/build/cli.bundled.js:204149:9
             at XMLHttpRequest.request.onreadystatechange (/usr/lib/node_modules/truffle/build/cli.bundled.js:205574:13)
             at XMLHttpRequestEventTarget.dispatchEvent (/usr/lib/node_modules/truffle/build/cli.bundled.js:73069:18)
             at XMLHttpRequest._setReadyState (/usr/lib/node_modules/truffle/build/cli.bundled.js:73359:12)
            at XMLHttpRequest._onHttpResponseEnd (/usr/lib/node_modules/truffle/build/cli.bundled.js:73514:12)
           at IncomingMessage.<anonymous> (/usr/lib/node_modules/truffle/build/cli.bundled.js:73474:24)
           at emitNone (events.js:91:20)

How can I update the Gas?I am new to Quorum.Please help me

1 Answer 1

5

inside module.exports, add Gas and gasPrice.

 network_id: "*", // Match any network id
 gasPrice: 0,
 gas: 4500000
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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