설정파일(config.toml)
randd 구동에 사용되는 옵션을 수정할 수 있습니다. 기본 디렉토리는 ~/.randd/config/config.toml 입니다. 편집기(vi나 nano 등)로 수정하여 사용합니다.
$ vi ~/.randd/config/config.toml
주요 항목은 다음과 같습니다.
RPC 서버 설정
외부에서 들어오는 RPC 접속을 허용하기 위해서는 [rpc] > laddr 항목을 수정해야 합니다.
# TCP or UNIX socket address for the RPC server to listen on
laddr = "tcp://<IP 주소>:26657"
외부 연결 허용
외부에서 들어오는 p2p 연결을 허용하기 위해서는 [p2p] > external_address 부분을 수정합니다.
# Address to advertise to peers for them to dial
# If empty, will use the same port as the laddr,
# and will introspect on the listener or use UPnP
# to figure out the address.
external_address = "tcp://<IP 주소>:26656"
시드 노드(Seed Node) 설정
p2p 연결을 위해서는 다른 IP로 연결할 수 있는 시드 노드에 접속해야 합니다. 시드 노드는 [p2p] > seeds 부분에 설정합니다. 공식 시드 노드가 운영중이며 주소는 f4215b2e40f6855a4372090f73f67ade07328681@157.230.222.192:26656 입니다.
# Comma separated list of seed nodes to connect to
seeds = "f4215b2e40f6855a4372090f73f67ade07328681@157.230.222.192:26656"
시드 모드 설정
외부에 시드를 공급하는 노드로 사용하기 위해서는 [p2p] > seed_mode 항목을 수정해야 합니다.
# Seed mode, in which node constantly crawls the network and looks for
# peers. If another node asks it for addresses, it responds and disconnects.
#
# Does not work if the peer-exchange reactor is disabled.
seed_mode = true