การ Sync JBC Blockchainด้วย Erigon

Nat
Jan 1, 2023

--

หลังจากที่มี erigon binary แล้ว จะเริ่มโหลดข้อมูลได้ด้วยการ Init ด้วยคำสั่ง

git clone https://github.com/jibchain-net/node
erigon --datadir=natdir init ~/github.com/jibchain-net/node/genesis.json

หรือ กำหนด jbc.toml

datadir = '~/16TB/jibchain-erigon/natdir'
networkid = 8899
bootnodes = ['enode://2fe036f0a233b05a92c229796dafbdd3d8c19eadc94b99ad04181e4e52d35f8500401a5aac0ed054575c5325f2db34fb491068c15858b65dd7354ca0ef442763@65.108.61.51:30303', 'enode://9789fb51f949a63fb9e34f7ee450c6de087c743083ce56fb46c1d3a15cb24bc41e988d71e71a95bd0d5a6c6b679f729f89dea487464a94af8d6ac55e161d0558@188.166.250.77:30303', 'enode://e07a8c0ca434fc67a09053972f25b1e7f614aa317d41100b07500b10c12982b8ae795777651daaf2fcc963d3aea36f980b0f3dd3c49d0e877a1716709d78b430@65.21.251.178:30303']
v5disc = true
maxpeers = 1000
# port = "30304"

"private.api.addr"="localhost:9092"
"http.api" = ["eth", "debug", "net", "trace", "web3", "erigon", "ots"]
"http.vhosts" = ["*"]
"http.port" = 8546
"http.addr" = "0.0.0.0"
"authrpc.port" = 8552
"log.console.verbosity" = "debug"
# "downloader.disable.ipv6" = true
# "sentry.api.addr" = "localhost:9093"

ซึ่งมาจาก

erigon --datadir ~/16TB/jibchain-erigon/natdir --networkid 8899 --bootnodes=enode://2fe036f0a233b05a92c229796dafbdd3d8c19eadc94b99ad04181e4e52d35f8500401a5aac0ed054575c5325f2db34fb491068c15858b65dd7354ca0ef442763@65.108.61.51:30303,enode://9789fb51f949a63fb9e34f7ee450c6de087c743083ce56fb46c1d3a15cb24bc41e988d71e71a95bd0d5a6c6b679f729f89dea487464a94af8d6ac55e161d0558@188.166.250.77:30303,enode://e07a8c0ca434fc67a09053972f25b1e7f614aa317d41100b07500b10c12982b8ae795777651daaf2fcc963d3aea36f980b0f3dd3c49d0e877a1716709d78b430@65.21.251.178:30303 --v5disc  --maxpeers 1000 --log.console.verbosity debug --no-downloader  --http.api=eth,debug,net,trace,web3,erigon,ots --no-downloader  --http.vhosts="*"  --authrpc.port=8552 --http.port=8546 --http.addr=0.0.0.0 --downloader.disable.ipv6 --port 30304

สามารถรันได้ด้วยคำสั่ง erigon --config ./jbc.toml --downloader.disable.ipv6

erigon --config ./jbc.toml

--

--

Nat
Nat

Written by Nat

Chiang Mai Maker Cub, Thailand

No responses yet