Search in sources :

Example 6 with P2pMgr

use of org.aion.p2p.impl1.P2pMgr in project aion by aionnetwork.

the class P2pMgrTest method testIgnoreSameIpAndPortAsSelf.

@Test
public void testIgnoreSameIpAndPortAsSelf() {
    String[] nodes = new String[] { "p2p://" + nodeId2 + "@" + ip1 + ":" + port1 };
    P2pMgr p2p = new P2pMgr(p2pLOG, surveyLog, 0, "", nodeId1, ip1, port1, nodes, false, 128, 128, false, 50);
    assertEquals(0, p2p.getTempNodesCount());
}
Also used : P2pMgr(org.aion.p2p.impl1.P2pMgr) Test(org.junit.Test)

Aggregations

P2pMgr (org.aion.p2p.impl1.P2pMgr)6 Test (org.junit.Test)4 ArrayList (java.util.ArrayList)1 IP2pMgr (org.aion.p2p.IP2pMgr)1 CfgNetP2p (org.aion.zero.impl.config.CfgNetP2p)1 AionPendingStateImpl (org.aion.zero.impl.pendingState.AionPendingStateImpl)1 AionPoW (org.aion.zero.impl.pow.AionPoW)1 SyncMgr (org.aion.zero.impl.sync.SyncMgr)1 BlockPropagationHandler (org.aion.zero.impl.sync.handler.BlockPropagationHandler)1 Ignore (org.junit.Ignore)1