2
1

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.

generating nemesis block for catapult-server

Last updated at Posted at 2018-05-18

running catapult-server on ubuntu16.04でcatapult-serverが動いたと思った。
しかし、よく考えたらデフォルトのmijin-test.propertiesでnemsis blockを生成してしまったら後でに何もできない気がした。
(最初にxemを持っている人の秘密鍵がわからないため)

ということで、以下、nemesis blockの再作成手順。
これでmijin-test用の409,090,909,000,000 xemゲット!

address生成

cd catapult-server/_build/bin
./catapult.tools.address -g 1 -n mijin-test > ../nemesis.address.txt
cat ../nemesis.address.txt
--- generating 1 keys ---
           private key: E1...
            public key: 82...
  address (mijin-test): SCSBPEXYDODOFC4LHR27KDVKRELXMRERKO4ZPDYV

mijin-test.propertiesに上記address(mijin-test)を設定

cp -p ../../tools/nemgen/resources/mijin-test.properties{,.bak} 
# 上記のaddressに変更
vi ../../tools/nemgen/resources/mijin-test.properties
diff -u ../../tools/nemgen/resources/mijin-test.properties{.bak,}
--- mijin-test.properties.bak      2018-05-18 01:37:23.290430662 -0400
+++ mijin-test.properties  2018-05-18 01:24:13.503868857 -0400
@@ -38,7 +38,7 @@

 [distribution>nem:xem]

-SAAA244WMCB2JXGNQTQHQOS45TGBFF4V2MJBVOUI = 409'090'909'000'000
+SCSBPEXYDODOFC4LHR27KDVKRELXMRERKO4ZPDYV = 409'090'909'000'000
 SAAA34PEDKJHKIHGVXV3BSKBSQPPQDDMO2ATWMY3 = 409'090'909'000'000
 SAAA467G4ZDNOEGLNXLGWUAXZKC6VAES74J7N34D = 409'090'909'000'000
 SAAA57DREOPYKUFX4OG7IQXKITMBWKD6KXTVBBQP = 409'090'909'000'000

nemesis block生成

mkdir -p ../seed/mijin-test
./catapult.tools.nemgen -r ../../tools/nemgen/resources/mijin-test.properties
cp ../seed/mijin-test/00000/00001.dat ../data/00000

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?