2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

[Hyperledger Iroha]irohad起動方法メモ

Posted at

記事の内容

Hyperledger Irohaのirohad(irohaデーモン)の起動コマンドについてメモ

※環境構築方法はこちらを参照
https://iroha.readthedocs.io/en/latest/getting_started/index.html

記事の内容はirohaコンテナ内で行います。

起動方法

初回起動

irohad -config config.docker -keypair_name node0 -genesis_block genesis.block

ポイントは「-genesis_block」
ジェネシスブロックのオプションを指定することを忘れない。
irohaのジェネシスブロックにはユーザーの権限情報などを事前に設定しておくことが可能です。
このあたりは柔軟なアカウントの権限管理が可能なirohaらしさかなと思います。

二回目以降

二回目以降は「-genesis_block」を指定しないだけ

irohad -config config.docker -keypair_name node0

ブロックを初期化する場合

irohad -config config.docker -keypair_name node0 -genesis_block genesis.block -overwrite_ledger true

「-genesis_block」と「-overwrite_ledger true」を忘れない。
「-overwrite_ledger」はデフォルトだとfalseになっているのでtrueを指定する。
これでブロックが上記のコマンドで指定したジェネシスブロックだけになる。

2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?