Skip to content

Instantly share code, notes, and snippets.

@yoshihiro503
Last active September 21, 2019 13:59
Show Gist options
  • Save yoshihiro503/5e10ec4f011ed988bdc8db51cde2092b to your computer and use it in GitHub Desktop.
Save yoshihiro503/5e10ec4f011ed988bdc8db51cde2092b to your computer and use it in GitHub Desktop.

通常盤tezos node (mainnnet) の実行

mainnetブランチのtezosソースコード

実行準備

export PATH=~/tezos:$PATH
source ./src/bin_client/bash-completion.sh
export TEZOS_CLIENT_UNSAFE_DISABLE_DISCLAIMER=Y

データ取得(時間がかかります)

tezos-node run --rpc-addr 127.0.0.1

これで、デフォルトの動作として

  • RPC server: localhost:8732
  • P2P node: localhost:9732

のポートをLISTENする。

別のターミナルで

tezos-client bootstrapped

でbootstrappedしたか確認できる。

plebeia版 tezos nodeのビルド

ソースコード取得

git clone [email protected]:dailambda/tezos.git
cd tezos/
git checkout jun@plebeia-context
git submodule update --init --recursive

環境構築

1. opam switch create . ocaml-base-compiler.4.07.1
2. opam install stdint res
3. opam repo remove default
4. make build-deps

ビルド

make
@yoshihiro503
Copy link
Author

yoshihiro503 commented Sep 9, 2019

plebeia nodeをprivate modeでrunする

./tezos-node identity generate --data-dir ~/.tezos-plebeia-node/
./tezos-node run --data-dir ~/.tezos-plebeia-node/  --rpc-addr localhost:18732 --private-mode --no-bootstrap-peers --bootstrap-threshold=1 --connections 1 --peer localhost --net-addr localhost:19732

plebeia nodeからlocal nodeに接続するように仕向ける

./tezos-admin-client --port 18732 connect address 127.0.0.1:9732

定期的に接続が切断される場合は以下のように定期実行させる

watch -n 600 ./tezos-admin-client --port 18732 connect address 127.0.0.1:9732

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment