Skip to content

Instantly share code, notes, and snippets.

@planethouki
Last active July 11, 2018 12:15
Show Gist options
  • Save planethouki/f7f57377b6c7ae221e87fd772a77e034 to your computer and use it in GitHub Desktop.
Save planethouki/f7f57377b6c7ae221e87fd772a77e034 to your computer and use it in GitHub Desktop.
nem catapult.server 実行2 ハーベストする ref: https://qiita.com/planethouki/items/c2fa3875a82c310376d4
# rm -r data/
# cp ../resources/* resources/
# bin/catapult.tools.address -g 10 --network mijin-test
--- generating 10 keys ---
private key: 6C07F78D8C932626F6550FB114C26EFAFE2EC40220E44E1EF0180D9FB89A0AF0
public key: 8C2C06CCCDDFBC964345C051B3A94906813DCB198BA8A56378DA6ED1D2E99B58
address (mijin-test): SCIXWKDPLL7L7IQO6LWN2HJXHYUV3F7ZQX3NUKM3
...続く
# cp ../tools/nemgen/resources/mijin-test.properties resources/
# vi resources/mijin-test.properties
cppFile = ../seed/mijin-test/MockMemoryBasedStorage_data.h
[distribution>nem:xem]
SCIXWKDPLL7L7IQO6LWN2HJXHYUV3F7ZQX3NUKM3 = 409'090'909'000'000
# mkdir -p seed/mijin-test/0000
# echo -n 6b23c0d5f35d1b11f9b683f0b0a617355deb11277d91ae091d399c655b87940d3f39d5c348e5b79d06e842c114e6cc571583bbf44e4b0ebfda1a01ec05745d43 > seed/mijin-test/00000/hashes.dat
# cd bin
# ./catapult.tools.nemgen ../resources/mijin-test.properties
# cd ../
# mkdir -p data/00000
# cp seed/mijin-test/00000/* data/00000/
# vi resources/config-harvesting.properties
[harvesting]
harvestKey = 6C07F78D8C932626F6550FB114C26EFAFE2EC40220E44E1EF0180D9FB89A0AF0
isAutoHarvestingEnabled = true
# cd bin
# ./catapult.server
2018-05-22 08:29:13.117334 0x00007f1ecf7fe700: <info> (src::ScheduledHarvesterTask.cpp@35) Successfully harvested block at 853 with signer 8C2C06CCCDDFBC964345C051B3A94906813DCB198BA8A56378DA6ED1D2E99B58
2018-05-22 08:29:13.160800 0x00007f1e9f7fe700: <info> (disruptor::ConsumerDispatcher.cpp@44) completing processing of element 100 (1 blocks (heights 853 - 853) [1E978FE3] empty from Local), last consumer is 0 elements behind
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment