LoginSignup
4
1

More than 5 years have passed since last update.

nem catapult.server 実行1 とりあえず実行

Last updated at Posted at 2018-05-23

こちらを使うことをおススメします。

前提

  • OSはUbuntu16.04
  • 公式githubのcatapult-serverが、公式の手順にてビルドされていること
    • ただ、公式の手順は説明が少なすぎるので、ほかの方の記事を参考にしてください
  • この手順は、最小限の実行を行います。
  • ハーベストはできません。APIも使えません。

catapult-serverのビルドについての情報

公式github
https://github.com/nemtech/catapult-server

@44uk_i3 さんの記事
https://qiita.com/44uk_i3/items/f4b510ed9227f4443ee7

@ryosasa さんの記事
https://qiita.com/ryosasa/items/f851518347f74836c9b8

海外の方
https://gitlab.com/he3labs-public/catapult-server-vagrant

テックビューロのgithub
https://github.com/tech-bureau/catapult-service-bootstrap

手順

  • 開始ディレクトリは、<catapult-server directory>/_build

resources

# cp ../resources/* resources/

Create Nemesis Block

mijin-test.properties

# cp ../tools/nemgen/resources/mijin-test.properties resources/
# vi resources/mijin-test.properties

cppFile = ../seed/mijin-test/MockMemoryBasedStorage_data.h

MockMemoryBasedStorage_data.hの使い道はわからない。

hashes.dat

# mkdir -p seed/mijin-test/0000
# echo -n 6b23c0d5f35d1b11f9b683f0b0a617355deb11277d91ae091d399c655b87940d3f39d5c348e5b79d06e842c114e6cc571583bbf44e4b0ebfda1a01ec05745d43 > seed/mijin-test/00000/hashes.dat

hashes.datに入れるべき値はおそらくなんでもよい。

nemgen

# cd bin
# ./catapult.tools.nemgen ../resources/mijin-test.properties
# cd ../

Copy

# mkdir -p data/00000
# cp seed/mijin-test/00000/* data/00000/

Run

# cd bin
# ./catapult.server

関連

nem catapult.server 実行2 ハーベストする
nem catapult.server 実行3 catapult.restの実行

4
1
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
4
1