3.4. mijin Catapult(v.2) データディレクトリ構造¶
- 作成日:
2022/8/1
- 更新日:
2022/8/22
mijinのデータ構造について説明します。
3.4.1. データ配置のディレクトリ¶
ディレクトリ |
説明 |
/home/catapult/mijin-catapult-package |
mijinのconfigファイルなどパッケージに関するディレクトリ| |
/mnt/mijin/blocks |
mijinのブロックデータディレクトリ |
/mnt/mijin/mongo |
mijinのmongoデータディレクトリ |
3.4.2. mijinパッケージの構造¶
3.4.2.1. APIノード¶
/home/catapult/mijin-catapult-package
├── default # mijin構築時に使用するディレクトリ(データとしては不要) Directory to be used when building mijin (not required as data)
│ ├── catapult
│ │ ├── bin-mount
│ │ │ ├── await
│ │ │ ├── wait
│ │ │ └── waitmongo
│ │ ├── mongo
│ │ │ ├── mongoDbDrop.js
│ │ │ ├── mongoDbPrepare.js
│ │ │ ├── mongoDeploy.sh
│ │ │ ├── mongoLockHashDbPrepare.js
│ │ │ ├── mongoLockSecretDbPrepare.js
│ │ │ ├── mongoMetadataDbPrepare.js
│ │ │ ├── mongoMosaicDbPrepare.js
│ │ │ ├── mongoMultisigDbPrepare.js
│ │ │ ├── mongoNamespaceDbPrepare.js
│ │ │ ├── mongoRestrictionAccountDbPrepare.js
│ │ │ ├── mongoRestrictionMosaicDbPrepare.js
│ │ │ └── mongors.sh
│ │ ├── nemgen
│ │ │ └── nemgen.sh
│ │ ├── scripts
│ │ │ ├── prepare.sh
│ │ │ ├── runServerRecover.sh
│ │ │ ├── startApiServer.sh
│ │ │ ├── startBroker.sh
│ │ │ └── startServer.sh
│ │ └── tools
│ │ ├── clean-all.sh
│ │ └── clean-data.sh
│ └── usr
│ └── catapult
│ └── bin-mount
├── package # mijin構築パッケージ Package for building mijin
│ └── api # apiノード用のパッケージ Package for api node
│ └── catapult
│ ├── docker-compose.yml # dockerコンテナを起動するcomposeファイル compose file to start docker container
│ ├── scripts
│ │ ├── prepare.sh
│ │ ├── recover.sh # ブロックリセット時に使用するスクリプト Script to be used when resetting the block
│ │ ├── runServerRecover.sh
│ │ ├── startApiServer.sh
│ │ ├── startBroker.sh
│ │ ├── startServer.sh
│ │ └── waitmongo.pl
│ └── userconfig
│ ├── block-properties-file.properties # ネメシス(ジェネシス)ブロックを作成する際に使用するプロパティファイル Property file used to create the Nemesis (Genesis) block
│ ├── resources
│ │ ├── cert # ノードの証明書 Node Certificates
│ │ │ ├── ca.cert.pem
│ │ │ ├── ca.pubkey.pem
│ │ │ ├── node.crt.pem
│ │ │ ├── node.full.crt.pem
│ │ │ └── node.key.pem
│ │ ├── config-database.properties # データベースに関する設定 Database Settings
│ │ ├── config-extensions-broker.properties # brokerノードに関する設定 Broker node settings
│ │ ├── config-extensions-recovery.properties # ブロックリカバリに関する設定 Settings for block recovery
│ │ ├── config-extensions-server.properties # ノードで起動する拡張領域関する設定 Settings related to the extension area to be activated in the node
│ │ ├── config-finalization.properties # ファイナライズに関する設定 Finalization Settings
│ │ ├── config-inflation.properties #インフレーションに関する設定 Inflation-related settings
│ │ ├── config-logging-broker.properties # brokerのログに関する設定 Settings for broker logging
│ │ ├── config-logging-recovery.properties #リカバリのログに関する設定 Recovery log settings
│ │ ├── config-logging-server.properties # サーバログに関する設定 Server log settings
│ │ ├── config-messaging.properties # MQに関する設定 MQ-related settings
│ │ ├── config-network.properties # mijinネットワークに関する設定 mijin network settings
│ │ ├── config-networkheight.properties # ネットワークのブロック高を知るためのノード数の設定 Set the number of nodes to know the block height of the network
│ │ ├── config-node.properties # ノードに関する設定 Node-related settings
│ │ ├── config-pt.properties # Partialトランザクションに関する設定 Partial Transaction Settings
│ │ ├── config-task.properties # タスクに関する設定 Task-related settings
│ │ ├── config-timesync.properties # 時間に関する設定 Time-related settings
│ │ ├── config-user.properties # ストレージに関する設定 Storage Settings
│ │ ├── peers-api.json # APIノードに関する設定 API Node Settings
│ │ ├── peers-p2p.json # PEERノードに関する設定 PEER Node Settings
│ │ └── votingkey # Votingに使用するファイル Files used for Voting
│ │ └── private_key_tree1.dat
│ ├── rest.json # restに関する設定 Settings for REST
│ ├── transactions # Nemesisブロック作成時にアナウンスするトランザクション Transaction to be announced at the time of Nemesis block creation
│ │ ├── voting_tx0.bin
│ │ ├── voting_tx1.bin
│ │ ├── voting_tx2.bin
│ │ ├── voting_tx3.bin
│ │ ├── voting_tx4.bin
│ │ ├── voting_tx5.bin
│ │ ├── voting_tx6.bin
│ │ ├── voting_tx7.bin
│ │ ├── voting_tx8.bin
│ │ ├── voting_tx9.bin
│ │ ├── vrf_tx0.bin
│ │ ├── vrf_tx1.bin
│ │ ├── vrf_tx2.bin
│ │ ├── vrf_tx3.bin
│ │ ├── vrf_tx4.bin
│ │ ├── vrf_tx5.bin
│ │ ├── vrf_tx6.bin
│ │ ├── vrf_tx7.bin
│ │ ├── vrf_tx8.bin
│ │ └── vrf_tx9.bin
│ └── votingkeys # 全ノードのVotingファイル Voting files for all nodes
│ ├── api
│ │ ├── 0
│ │ │ └── private_key_tree1.dat
│ │ ├── 1
│ │ │ └── private_key_tree1.dat
│ │ └── 2
│ │ └── private_key_tree1.dat
│ └── peer
│ ├── 0
│ │ └── private_key_tree1.dat
│ ├── 1
│ │ └── private_key_tree1.dat
│ ├── 2
│ │ └── private_key_tree1.dat
│ ├── 3
│ │ └── private_key_tree1.dat
│ ├── 4
│ │ └── private_key_tree1.dat
│ ├── 5
│ │ └── private_key_tree1.dat
│ └── 6
│ └── private_key_tree1.dat
└── tools
└── address.py # アドレス作成時に変換するツール Tools to convert when creating addresses
3.4.2.2. PEERノード¶
/home/catapult/mijin-catapult-package
├── default # mijin構築時に使用するディレクトリ(データとしては不要) Directory to be used when building mijin (not required as data)
│ └── catapult
│ ├── bin-mount
│ │ ├── await
│ │ ├── wait
│ │ └── waitmongo
│ ├── mongo
│ │ ├── mongoDbDrop.js
│ │ ├── mongoDbPrepare.js
│ │ ├── mongoDeploy.sh
│ │ ├── mongoLockHashDbPrepare.js
│ │ ├── mongoLockSecretDbPrepare.js
│ │ ├── mongoMetadataDbPrepare.js
│ │ ├── mongoMosaicDbPrepare.js
│ │ ├── mongoMultisigDbPrepare.js
│ │ ├── mongoNamespaceDbPrepare.js
│ │ ├── mongoRestrictionAccountDbPrepare.js
│ │ ├── mongoRestrictionMosaicDbPrepare.js
│ │ └── mongors.sh
│ ├── nemgen
│ │ └── nemgen.sh
│ ├── scripts
│ │ ├── prepare.sh
│ │ ├── runServerRecover.sh
│ │ ├── startApiServer.sh
│ │ ├── startBroker.sh
│ │ └── startServer.sh
│ └── tools
│ ├── clean-all.sh
│ └── clean-data.sh
├── package
│ └── peer
│ └── catapult
│ ├── docker-compose.yml # dockerコンテナを起動するcomposeファイル compose file to start docker container
│ ├── scripts
│ │ ├── prepare.sh
│ │ ├── recover.sh # ブロックリセット時に使用するスクリプト Script to be used when resetting the block
│ │ ├── runServerRecover.sh
│ │ ├── startApiServer.sh
│ │ ├── startBroker.sh
│ │ ├── startServer.sh
│ │ └── waitmongo.pl
│ └── userconfig
│ ├── block-properties-file.properties # ネメシス(ジェネシス)ブロックを作成する際に使用するプロパティファイル Property file used to create the Nemesis (Genesis) block
│ ├── resources
│ │ ├── cert # ノードの証明書 Node Certificates
│ │ │ ├── ca.cert.pem
│ │ │ ├── ca.pubkey.pem
│ │ │ ├── node.crt.pem
│ │ │ ├── node.full.crt.pem
│ │ │ └── node.key.pem
│ │ ├── config-database.properties # データベースに関する設定 Database Settings
│ │ ├── config-extensions-recovery.properties # ブロックリカバリに関する設定 Settings for block recovery
│ │ ├── config-extensions-server.properties # ノードで起動する拡張領域関する設定 Settings related to the extension area to be activated in the node
│ │ ├── config-finalization.properties # ファイナライズに関する設定 Finalization Settings
│ │ ├── config-harvesting.properties # ハーベストに関する設定 Harvest-related settings
│ │ ├── config-inflation.properties # インフレーションに関する設定 Inflation-related settings
│ │ ├── config-logging-recovery.properties #リカバリのログに関する設定 Recovery log settings
│ │ ├── config-logging-server.properties # サーバログに関する設定 Server log settings
│ │ ├── config-messaging.properties # MQに関する設定 MQ-related settings
│ │ ├── config-network.properties # mijinネットワークに関する設定 mijin network settings
│ │ ├── config-networkheight.properties # ネットワークのブロック高を知るためのノード数の設定 Set the number of nodes to know the block height of the network
│ │ ├── config-node.properties # ノードに関する設定 Node-related settings
│ │ ├── config-pt.properties # Partialトランザクションに関する設定 Partial Transaction Settings
│ │ ├── config-task.properties # タスクに関する設定 Task-related settings
│ │ ├── config-timesync.properties # 時間に関する設定 Time-related settings
│ │ ├── config-user.properties # ストレージに関する設定 Storage Settings
│ │ ├── peers-api.json # APIノードに関する設定 API Node Settings
│ │ ├── peers-p2p.json # PEERノードに関する設定 PEER Node Settings
│ │ └── votingkey # Votingに使用するファイル Files used for Voting
│ │ └── private_key_tree1.dat
│ ├── transactions # Nemesisブロック作成時にアナウンスするトランザクション Transaction to be announced at the time of Nemesis block creation
│ │ ├── voting_tx0.bin
│ │ ├── voting_tx1.bin
│ │ ├── voting_tx2.bin
│ │ ├── voting_tx3.bin
│ │ ├── voting_tx4.bin
│ │ ├── voting_tx5.bin
│ │ ├── voting_tx6.bin
│ │ ├── voting_tx7.bin
│ │ ├── voting_tx8.bin
│ │ ├── voting_tx9.bin
│ │ ├── vrf_tx0.bin
│ │ ├── vrf_tx1.bin
│ │ ├── vrf_tx2.bin
│ │ ├── vrf_tx3.bin
│ │ ├── vrf_tx4.bin
│ │ ├── vrf_tx5.bin
│ │ ├── vrf_tx6.bin
│ │ ├── vrf_tx7.bin
│ │ ├── vrf_tx8.bin
│ │ └── vrf_tx9.bin
│ └── votingkeys # 全ノードのVotingファイル Voting files for all nodes
│ ├── api
│ │ ├── 0
│ │ │ └── private_key_tree1.dat
│ │ ├── 1
│ │ │ └── private_key_tree1.dat
│ │ └── 2
│ │ └── private_key_tree1.dat
│ └── peer
│ ├── 0
│ │ └── private_key_tree1.dat
│ ├── 1
│ │ └── private_key_tree1.dat
│ ├── 2
│ │ └── private_key_tree1.dat
│ ├── 3
│ │ └── private_key_tree1.dat
│ ├── 4
│ │ └── private_key_tree1.dat
│ ├── 5
│ │ └── private_key_tree1.dat
│ └── 6
│ └── private_key_tree1.dat
└── tools
└── address.py # アドレス作成時に変換するツール Tools to convert when creating addresses
3.4.3. ブロックデータの構造¶
/mnt/mijin/blocks/
├── data # ブロックチェーンのデータディレクトリ Blockchain Data Directory
│ ├── 00000
│ ├── audit
│ ├── catapult_server0000.log
│ ├── commit_step.dat
│ ├── importance
│ ├── index.dat
│ ├── logs
│ ├── proof.index.dat
│ ├── server.lock
│ ├── spool
│ ├── startup
│ ├── state
│ ├── statedb
│ ├── summary.txt
│ ├── transfer_message
│ ├── voting
│ └── voting_status.dat
└── seed # Nemesisブロック Nemesis block
├── 00000
├── index.dat
├── proof.index.dat
└── summary.txt
3.4.4. Mongoデータ構造¶
/mnt/mijin/mongo/
└── db # mongoのデータディレクトリ mongo data directory
├── WiredTiger
├── WiredTiger.lock
├── WiredTiger.turtle
├── WiredTiger.wt
├── WiredTigerLAS.wt
├── _mdb_catalog.wt
├── collection-0--1310205274663118138.wt
├── collection-0--3714664905013916938.wt
├── collection-108--1310205274663118138.wt
├── collection-115--1310205274663118138.wt
├── collection-122--1310205274663118138.wt
├── collection-129--1310205274663118138.wt
├── collection-138--1310205274663118138.wt
├── collection-145--1310205274663118138.wt
├── collection-150--1310205274663118138.wt
├── collection-162--1310205274663118138.wt
├── collection-167--1310205274663118138.wt
├── collection-2--1310205274663118138.wt
├── collection-28--1310205274663118138.wt
├── collection-35--1310205274663118138.wt
├── collection-4--1310205274663118138.wt
├── collection-56--1310205274663118138.wt
├── collection-61--1310205274663118138.wt
├── collection-66--1310205274663118138.wt
├── collection-71--1310205274663118138.wt
├── collection-78--1310205274663118138.wt
├── collection-8--1310205274663118138.wt
├── collection-9--1310205274663118138.wt
├── collection-93--1310205274663118138.wt
├── diagnostic.data
├── index-1--1310205274663118138.wt
├── index-1--3714664905013916938.wt
├── index-10--1310205274663118138.wt
├── index-102--1310205274663118138.wt
├── index-104--1310205274663118138.wt
├── index-106--1310205274663118138.wt
├── index-109--1310205274663118138.wt
├── index-11--1310205274663118138.wt
├── index-110--1310205274663118138.wt
├── index-113--1310205274663118138.wt
├── index-116--1310205274663118138.wt
├── index-117--1310205274663118138.wt
├── index-120--1310205274663118138.wt
├── index-123--1310205274663118138.wt
├── index-124--1310205274663118138.wt
├── index-127--1310205274663118138.wt
├── index-13--1310205274663118138.wt
├── index-130--1310205274663118138.wt
├── index-131--1310205274663118138.wt
├── index-134--1310205274663118138.wt
├── index-136--1310205274663118138.wt
├── index-139--1310205274663118138.wt
├── index-140--1310205274663118138.wt
├── index-143--1310205274663118138.wt
├── index-146--1310205274663118138.wt
├── index-147--1310205274663118138.wt
├── index-151--1310205274663118138.wt
├── index-152--1310205274663118138.wt
├── index-154--1310205274663118138.wt
├── index-156--1310205274663118138.wt
├── index-158--1310205274663118138.wt
├── index-16--1310205274663118138.wt
├── index-160--1310205274663118138.wt
├── index-163--1310205274663118138.wt
├── index-164--1310205274663118138.wt
├── index-168--1310205274663118138.wt
├── index-169--1310205274663118138.wt
├── index-19--1310205274663118138.wt
├── index-22--1310205274663118138.wt
├── index-25--1310205274663118138.wt
├── index-29--1310205274663118138.wt
├── index-3--1310205274663118138.wt
├── index-30--1310205274663118138.wt
├── index-32--1310205274663118138.wt
├── index-36--1310205274663118138.wt
├── index-37--1310205274663118138.wt
├── index-39--1310205274663118138.wt
├── index-41--1310205274663118138.wt
├── index-44--1310205274663118138.wt
├── index-46--1310205274663118138.wt
├── index-48--1310205274663118138.wt
├── index-5--1310205274663118138.wt
├── index-50--1310205274663118138.wt
├── index-52--1310205274663118138.wt
├── index-54--1310205274663118138.wt
├── index-57--1310205274663118138.wt
├── index-58--1310205274663118138.wt
├── index-6--1310205274663118138.wt
├── index-62--1310205274663118138.wt
├── index-63--1310205274663118138.wt
├── index-67--1310205274663118138.wt
├── index-68--1310205274663118138.wt
├── index-72--1310205274663118138.wt
├── index-73--1310205274663118138.wt
├── index-75--1310205274663118138.wt
├── index-79--1310205274663118138.wt
├── index-80--1310205274663118138.wt
├── index-82--1310205274663118138.wt
├── index-84--1310205274663118138.wt
├── index-87--1310205274663118138.wt
├── index-89--1310205274663118138.wt
├── index-91--1310205274663118138.wt
├── index-94--1310205274663118138.wt
├── index-95--1310205274663118138.wt
├── index-97--1310205274663118138.wt
├── index-99--1310205274663118138.wt
├── journal
├── mongod.lock
├── sizeStorer.wt
└── storage.bson