2017-08-09 10 views
0

私は、test-rpcへのデプロイに成功したメインネットワーク( "1")と、geth --devフラグを使ってテストネットワークに契約を展開しようとしています。私が試した...Truffleの移行は失敗しますが、メインネットワーク上でのみ実行されます。

geth --unlock 3984bc76cb775d7866d1cd55c4f49e3d13d411d4 --mine --minerthreads 1 --port 8546 --rpc --rpcapi db,eth,net,web3,personal --rpccorsdomain * --rpcaddr "localhost" --rpcport 8546 

...と私はトリュフの移行を実行したときに

$ truffle migrate --network live --verbose-rpc 

Using network 'live'. 


    > { 
     > "jsonrpc": "2.0", 
     > "id": 1, 
     > "method": "eth_call", 
     > "params": [ 
     >  { 
     >  "from": "0x3984bc76cb775d7866d1cd55c4f49e3d13d411d4", 
     >  "gas": "0x47e7c4", 
     >  "gasPrice": "0x174876e800", 
     >  "to": "0x16529aa9698987f5e1a983a8ac5f5bb7ccf25f82", 
     >  "data": "0x445df0ac" 
     >  }, 
     >  "latest" 
     > ] 
     > } 
    Error: Invalid JSON RPC response: "" 
     at Object.InvalidResponse (/usr/local/lib/node_modules/truffle/build/cli.bundled.js:37022:16) 
     at XMLHttpRequest.request.onreadystatechange (/usr/local/lib/node_modules/truffle/build/cli.bundled.js:208519:32) 
     at XMLHttpRequestEventTarget.dispatchEvent (/usr/local/lib/node_modules/truffle/build/cli.bundled.js:210395:18) 
     at XMLHttpRequest._setReadyState (/usr/local/lib/node_modules/truffle/build/cli.bundled.js:210685:12) 
     at XMLHttpRequest._onHttpRequestError (/usr/local/lib/node_modules/truffle/build/cli.bundled.js:210875:12) 
     at ClientRequest.<anonymous> (/usr/local/lib/node_modules/truffle/build/cli.bundled.js:210745:24) 
     at emitOne (events.js:115:13) 
     at ClientRequest.emit (events.js:210:7) 
     at Socket.socketOnEnd (_http_client.js:437:9) 
     at emitNone (events.js:110:20) 

:私は実行

module.exports = { 
    networks: { 
    development: { 
     host: "localhost", 
     port: 8545, 
     network_id: "*" // Match any network id 
    }, 
    // geth: { 
    // host: 'http://10.0.0.241', 
    // port: 8110, 
    // network_id: '1234' // Match network id 
    // // from: '0x7824b8756cfa5131ead88e190e8adb10546fefaf' // account 0 
    //  // (default account which has been already unlocked) 
    // }, 
    live: { 
     network_id: 1, 
     host: "localhost", 
     port: 8546, 
     from: "3984bc76cb775d7866d1cd55c4f49e3d13d411d4" 
     // host: "localhost", 
     // port: 8546 // Different than the default below 
     // optional config values: 
     // gas 
     // gasPrice 
     // from - default address to use for any transaction Truffle makes during migrations 
     // provider - web3 provider instance Truffle should use to talk to the Ethereum network. 
     //   - if specified, host and port are ignored. 
    } 
    } 
}; 

を:

は、ここに私のtruffle.jsファイルがどのように見えるかですこれを是正するためにさまざまなものを幅広く提供していますが、これまでのところ役に立たないものです。誰もがアイデアを持っていますか?

ちょっとチェックしてみてください: - アカウントのロックが解除されています。 - ないスクルージ・マクダックの方法であるが、アカウントは、資金を供給されています。私はそれが出splurtedテキストのチャンクを読みたい場合https://etherscan.io/address/0x3984bc76cb775d7866d1cd55c4f49e3d13d411d4

答えて

0

それは私がフラグ--rpcport 8546を含むにもかかわらず、GETHは8545.上で聞いていたことが判明走った後、私はこれを知っていただろう。

INFO [08-10|09:54:42] HTTP endpoint opened: http://127.0.0.1:8545 
関連する問題