I wrote node1.cfg and node2.cfg, each of which points one another.
Before running nodes, I also executed stellar-core with --forcescp.
After running two nodes, nomination protocol was continually skipped or sometimes they showed 'Lost track of consensus' error.
I think there are missing configurations, but I don't know what they are. Please help.
node1.cfg
HTTP_PORT=8080
PUBLIC_HTTP_PORT=false
RUN_STANDALONE=false
ALLOW_LOCALHOST_FOR_TESTING=true
PEER_PORT=11625
KNOWN_PEERS=[
"localhost:11626"
]
NETWORK_PASSPHRASE="Test Eugene Network ; 2018"
#public key : GAWJ4O7BAVFWD5Q2K2VOKEONY433NF3BC6JZKICUTFWXPZ3GIY6WSQKM
NODE_SEED="SBRRHRRUGFCRAD2TIJ7MYB43TGYYSKGFMJSECLHQIN5AIOIM6CC4AWAF self"
NODE_IS_VALIDATOR=true
NODE_NAMES=[
"GD72OUEXGHJAEE7AKRS4PS5WTSUSRUROS3R3NUZUOQEAYVQFHP6SDNIM node2"
]
DATABASE="postgresql://dbname=stellar_node1 user=postgres password=password host=localhost"
COMMANDS=["ll?level=debug"]
FAILURE_SAFETY=0
UNSAFE_QUORUM=true
[QUORUM_SET]
THRESHOLD_PERCENT=100
VALIDATORS=["$self", "$node2"]
[HISTORY.vs]
get="cp /tmp/stellar-core/history/vs/node1/{0} {1}"
put="cp {0} /tmp/stellar-core/history/vs/node1/{1}"
mkdir="mkdir -p /tmp/stellar-core/history/vs/node1/{0}"
node2.cfg
HTTP_PORT=8081
PUBLIC_HTTP_PORT=false
RUN_STANDALONE=false
ALLOW_LOCALHOST_FOR_TESTING=true
PEER_PORT=11626
KNOWN_PEERS=[
"localhost:11625"
]
NETWORK_PASSPHRASE="Test Eugene Network ; 2018"
#public key : GD72OUEXGHJAEE7AKRS4PS5WTSUSRUROS3R3NUZUOQEAYVQFHP6SDNIM
NODE_SEED="SDQCZGFNOI72DQTC6O5T4ECXW6OTJUQAT2LODNABXPPODVRGAMROW5QN self"
NODE_IS_VALIDATOR=true
NODE_NAMES=[
"GAWJ4O7BAVFWD5Q2K2VOKEONY433NF3BC6JZKICUTFWXPZ3GIY6WSQKM node1"
]
DATABASE="postgresql://dbname=stellar_node2 user=postgres password=password host=localhost"
COMMANDS=["ll?level=debug"]
FAILURE_SAFETY=0
UNSAFE_QUORUM=true
[QUORUM_SET]
THRESHOLD_PERCENT=100
VALIDATORS=["$self", "$node1"]
[HISTORY.vs]
get="cp /tmp/stellar-core/history/vs/node2/{0} {1}"
put="cp {0} /tmp/stellar-core/history/vs/node2/{1}"
mkdir="mkdir -p /tmp/stellar-core/history/vs/node2/{0}"