quorum-gs helps build quorum raft cluster in a minute for development purpose.
- This project is on alpha phase
MacOS
- Install quorum
- Create nodes.
- Create accounts.
- Initialize network setting.
- Run node.
- Attach to node.
This command install quorum and build.
./install-quorum.sh
Run the script. You can create any number of nodes.
./creaet-node.sh
Create an account on a node. You should keep one public address to allocate initial balance on the next step.
./create-account.sh
You allocate initial balance to an account and create network setting files.
./4.init-network.sh
Chose one node to run from the nodes you created.
./run-node.sh
You choose a node to attach.
./attach-node.sh
Delete all nodes and data and network settings.
./clean-node.sh
./processes.sh
./processes.sh # list all running nodes
./kill-node.sh "$pid"
QuorumのRaftクラスターをローカル環境で簡易的に動作させるためのプロジェクトです。 開発・検証用途に利用してください。
MacOS
以下の手順でセットアップします。
- Quorumのインストール
- Nodeの作成
- アカウントの作成
- Nodeの設定
- Nodeの起動
- Nodeへ接続
以下のコマンドでQuorumをインストール・ビルドします。
./install-quorum.sh
以下のコマンドで好きな数のNodeを作成します。一度実行する度にNode1, Node2, Node3...とNodeが作成されていきます。
./creaet-node.sh
各Nodeで利用するアカウントを作成します。 この時に生成されたアドレスのうちのどれか一つは後の手順で利用するためメモしておきましょう。
./create-account.sh
ネットワークの定義ファイルを作成します。 この時、3の手順でメモした初期残高を割り当てるアカウントのアドレスを入力します。
./4.init-network.sh
作成したNodeのうち任意のNodeを起動します。
./run-node.sh
起動したNodeのコンソールへ接続します。
./attach-node.sh
全てのノードを削除して初期化します。アカウントやブロックチェーンのデータも全て消えるので注意してください。 削除後は手順 '2. Nodeの作成' の手順からやり直してください。
./clean-node.sh
./processes.sh
以下の手順でプロセスIDを特定し、killします。
./processes.sh # 起動しているノードのプロセスIDを取得する。
./kill-node.sh "$pid" # ノードを停止させる。
- quorum run --port=21000
- quorum ps
- quorum stop id
- quorum build ?
- quorum-compose up
0x2d692338a367A12F33F7aD788868dcb5aF81c5B1
foo & FOO_PID=$! https://stackoverflow.com/questions/1908610/how-to-get-process-id-of-background-process