Giter Site home page Giter Site logo

plusplus-jp / geth-control Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 0.0 292 KB

Geth (go-ethereum) control script, can support initialize, start and stop network.

Home Page: https://plusplus-jp.hateblo.jp/entry/2018/05/16/110226

License: MIT License

Shell 100.00%
geth macos go-ethereum ethereum ethereum-client

geth-control's Introduction

geth (go-ethereum client) control script

1. Overview / 概要

It is a script to handle geth (go-ethereum client) commands easily. It will work on MacOS.

geth (go-ethereum client) のコマンドを簡単に扱うためのスクリプトです。 MacOSで動作することを確認しています。

2. How To Use. / 使用方法

2.1. config / 初期設定

If you want to change the port used for communication, create it as private-net/private-net.cf from private-net/sample-private-net.cf and set the port number.

通信に使用するポートを変更したい場合は、private-net/sample-private-net.cf から private-net/private-net.cf として作成し、ポート番号を設定します。

  • OPT_RPC_PORT (Default: 8545)
    • Specify the port number to be used for rpc connection.
    • rpc 接続で使用するポート番号を指定します。
  • OPT_WS_PORT (Default: 8546)
    • Specify the port number to be used for web socket.
    • web socket で使用するポート番号を指定します。
  • OPT_GETH_PORT (Default: 30303)
    • Specify the port number that geth uses to communicate with other nodes.
    • gethが他のノードと通信する際に使用するポート番号を指定します。

2.2. create getesis.json / getesis.json を作成

First of all, please create getesis.json. sample-genesis.json is a sample file. You can use it even if you copy it as it is.

まずはじめに、getesis.json を作成してください。 sample-genesis.json がサンプルファイルです。そのままコピーしても使えます。

2.3. initialize / 初期化

Execute initialize-private-network.sh to initialize private nets. Initialization is done only once.

initialize-private-network.sh を実行し、プライベートネットの初期化を行います。 初期化は一度だけ行います。

2.4. start private net / プライベートネットの起動

Execute start-private-net.sh to start the private net. If there is an error, it will be displayed on the console.

start-private-net.sh を実行し、プライベートネットを起動します。 エラーが有る場合は、コンソールに表示されるでしょう。

2.5. stop private net / プライベートネットの停止

If you want to stop the private net, execute stop-private-net.sh and stop the process.

プライベートネットを停止させたい場合は、stop-private-net.sh を実行します。

geth-control's People

Contributors

osamu-sawada avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.