使用マシン
- OS: Ubuntu 18.04
- opam : 2.0.0
使用ディレクトリ
- ~/tezos-mainnet/ : main1 のコードベース
- ~/tezos/ : main2 開始のためのコードベース
- /sandisk/ : 内蔵SSD 1.8 TB
- /sandisk/tezos/tezos-mainnet/ : main1 のストレージ
- /sandisk/tezos/tezos-plebeia-node/ : main2そしてplebeiaノード用のストレージ
もらった300GBほどのデータを使って main を動かす。
plebeia開発時のtezos a67ca32c
を使う。
git clone [email protected]:tezos/tezos.git tezos-mainnet
cd tezos-mainnet/
git checkout a67ca32c
opam update
make build-deps
eval $(opam env)
make
~/tezos-mainnet$ ls -l /sandisk/tezos/tezos-mainnet
drwxrwxr-x 2 mube mube 4096 1月 20 13:59 context
drwxrwxr-x 4 mube mube 4096 1月 20 14:49 protocol
drwxrwxr-x 2 mube mube 4096 1月 20 14:23 store
cat /sandisk/tezos/tezos-mainnet/version.json
{ "version": "0.0.3" }
./tezos-node identity generate --data-dir /sandisk/tezos/tezos-mainnet/
./tezos-node run --data-dir /sandisk/tezos/tezos-mainnet/ --rpc-addr 127.0.0.1
確認
:~/tezos-mainnet$ ./tezos-client bootstrapped
Disclaimer:
The Tezos network is a new blockchain technology.
Users are solely responsible for any risks associated
with usage of the Tezos network. Users should do their
own research to determine if Tezos is the appropriate
platform for their needs and should apply judgement and
care in their network interactions.
Current head: BMQKM3jt3VVw (timestamp: 2020-01-20T06:27:52-00:00, validation: 2020-01-20T06:28:55-00:00)
Bootstrapped.
main2 はまずは mainnetをprivate-modeで空っぽから動かして main1 と正常にsyncできるか確認する。
最新の mainnet mainnet-2020-january
を使う。
cd tezos/
git fetch
git checkout mainnet
git merge --ff
make build-deps
eval $(opam env)
make
:~/tezos$ mkdir /sandisk/tezos/tezos-plebeia-node
:~/tezos$ ./tezos-node identity generate --data-dir /sandisk/tezos/tezos-plebeia-node/
:~/tezos$ ./tezos-node run --data-dir /sandisk/tezos/tezos-plebeia-node/ --rpc-addr localhost:18732 --private-mode --no-bootstrap-peers --bootstrap-threshold=1 --connections 1 --peer localhost --net-addr localhost:19732
main1 にmain2の信頼を与える
:~/tezos$ ./tezos-admin-client --port 18732 connect address 127.0.0.1:9732
Connection to 127.0.0.1:9732 established.
確認
:~/tezos$ ./tezos-client --port 18732 bootstrapped
plivate modeじゃないけど改めて plebeia tezos 動かすことがあった