There is a public Ethereum test network, but we will create our own private test network locally, using the “genesis.json” file we created earlier.
公開イーサリアム試験ネットワークがありますが、我々は、我々が以前に作成した「genesis.json」ファイルを使って、ローカルに我々自身の私的試験ネットワークを作成します。
Fire up another command-line interface and type in the following (be sure to run it in your project root folder):
もう1つのコマンド行インタフェースをかき立てて、そして次のことを入力してください(必ずそれをあなたのプロジェクトのルートフォルダで走らせてください):
geth --datadir=./chaindata/ init ./genesis.json
We launch geth and specify where our blockchain will be stored, here in the “chaindata” folder (it will be automatically generated), and we initialize it with our “genesis.json” configuration file.
我々は geth を始動して、そして、「chaindata」フォルダ(それは自動的に生成されるでしょう)のここに、我々のブロックチェーンがどこに蓄積されるか指定しま、そして我々は我々の「genesis.json」コンフィギュレーション・ファイルでそれを初期化します。
We then start geth using the following command:
我々はそれから以下のコマンドを使い、gethを開始します:
geth --datadir=./chaindata/ --rpc
The “--rpc” parameter tells geth to accept RPC connections, it’s needed so that truffle can connect to geth.
「− rpc」媒介変数は、遠隔手続き呼び出し接続を、受け入れるように geth に言います。それは、そのtruffleが geth に接続することができるように必要とされます。
Open another command-line interface, and start Mist (or Ethereum Wallet), using the same parameters:
もう1つのコマンド行インタフェースを開いて、そして、同じパラメーターを使って、Mist(あるいは イーサリアムウオレット)を始めてください:
mist –rpchttp://127.0.0.1:8545
The “-rpc” tells Mist (or Ethereum Wallet) to connect to the instance of geth we started.
「rpc」は Mist (あるいは イーサリアムウオレット)に我々が始めた geth のインスタンスに接続するように言います。
=====================================================================
=====================================================================