Skip to content

Commit

Permalink
AKI-544 fix bootlist nodes has been remove on the tempNode list after…
Browse files Browse the repository at this point in the history
… the booting node became to an active node
  • Loading branch information
AionJayT committed Nov 13, 2019
1 parent a8a8a1d commit 6e31875
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modP2pImpl/src/org/aion/p2p/impl/comm/NodeMgr.java
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,8 @@ public void addTempNode(final INode _n) {
if (_n == null) return;

int key = _n.getIdHash();
if (!tempNodesKeys.contains(key) && notActiveNode(key)) {
// The bootlist node will be added back into the tempNodes incase all the connections dropped.
if (!tempNodesKeys.contains(key) && (notActiveNode(key) || _n.getIfFromBootList())) {
if (tempNodes.offerLast(_n)) {
tempNodesKeys.add(key);
}
Expand Down

0 comments on commit 6e31875

Please sign in to comment.