Hi I created a private network of 3 nodes with the following configurations like this:
# more than one node should validate. threashold = 2
[QUORUM_SET]
THRESHOLD_PERCENT=34
VALIDATORS=["$node01","$node02","$node03"]
so {node01, node02, node03} forms a quorum.
Now I want to connect another node - node04 with the following configuration :
[QUORUM_SET]
THRESHOLD_PERCENT=1
VALIDATORS=[
]
# threshold = 3 (more than 2 nodes should validate)
[QUORUM_SET.1]
THRESHOLD_PERCENT=51
VALIDATORS=[
"$node01",
"$node02",
"$node03",
"$self"
]
But the node04 is getting reject and getting outofsync and hence not getting consensus. here is the error at node04 console :
successful handshake with [email protected]:11645
2019-06-13T14:26:15.972 GD6ED [Overlay INFO] successful handshake with [email protected]:11625
2019-06-13T14:26:15.994 GD6ED [Overlay WARNING] Received error (ERR_LOAD): peer rejected
2019-06-13T14:26:15.994 GD6ED [Overlay INFO] Dropping peer [email protected]:11635
2019-06-13T14:26:15.994 GD6ED [Overlay WARNING] ignoring received localhost
2019-06-13T14:26:15.994 GD6ED [Overlay WARNING] ignoring received localhost
2019-06-13T14:26:15.994 GD6ED [Overlay WARNING] ignoring received localhost
2019-06-13T14:26:15.994 GD6ED [Overlay WARNING] ignoring received localhost
2019-06-13T14:26:15.995 GD6ED [Overlay ERROR] TCPPeer::drop shutdown socket failed: Transport endpoint is not connected [TCPPeer.cpp:195]
2019-06-13T14:26:15.995 GD6ED [Overlay WARNING] Received error (ERR_LOAD): peer rejected
Error at one of the other nodes :
New connected peer (empty)
2019-06-13T15:03:52.813 GCOQO [Overlay WARNING] New peer rejected, all slots taken
2019-06-13T15:03:52.813 GCOQO [Overlay INFO] Dropping peer [email protected]:11655
Here I have 2 questions:
- Q1) Am I doing some incorrect configuration ?
- Q2) When I am adding node04, then, in that case, the quourum is still {node01, node02, node03} right?
- Q3) Is there any proper documentation of connecting a new node with main network ?
TIA!
Edit:
I stopped all of the nodes and added node04 in the list of preferred peers and restarted everything again and it worked.
Now the question is, In case I want to become a validator node in main network , then do I have to publish my IP to the community so that they can add me in their preferred peers?