Package com.h2tcoin.takamakachain.p2p
Class P2PInitiater
- java.lang.Object
-
- com.h2tcoin.takamakachain.p2p.P2PInitiater
-
public class P2PInitiater extends Object
- Author:
- francesco.pasetto@h2tcoin.com
-
-
Constructor Summary
Constructors Constructor Description P2PInitiater()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addListener(P2PListener p2p)
void
binarySearch(TransactionQueryBean tqb, NodeBean node)
void
downloadBlock(TransactionQueryBean tqb, NodeBean node)
NodeBean
getRandomNode(NetworkPool tp)
ArrayList<NodeBean>
listNodes(NetworkPool np)
ArrayList<NodeBean>
listOthersNodes(NetworkPool tp)
-
-
-
Method Detail
-
addListener
public void addListener(P2PListener p2p)
-
listNodes
public ArrayList<NodeBean> listNodes(NetworkPool np)
-
listOthersNodes
public ArrayList<NodeBean> listOthersNodes(NetworkPool tp)
-
getRandomNode
public NodeBean getRandomNode(NetworkPool tp)
-
downloadBlock
public void downloadBlock(TransactionQueryBean tqb, NodeBean node)
-
binarySearch
public void binarySearch(TransactionQueryBean tqb, NodeBean node)
-
-