本文整理汇总了Java中com.google.bitcoin.core.PeerAddress类的典型用法代码示例。如果您正苦于以下问题:Java PeerAddress类的具体用法?Java PeerAddress怎么用?Java PeerAddress使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
PeerAddress类属于com.google.bitcoin.core包,在下文中一共展示了PeerAddress类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: MyFooWallet
import com.google.bitcoin.core.PeerAddress; //导入依赖的package包/类
public MyFooWallet(String anotherFilePrefix, NetworkParameters param,
PeerAddress... addresses) {
this.setParam(param);
// String filePrefix = "Another_ID_For_Test_Wallet";
getKit().setPeerNodes(addresses);
// Download the block chain and wait until it's done.
kit = new WalletAppKit(param, new File("."), anotherFilePrefix) {
@Override
protected void onSetupCompleted() {
onSetupCompletd();
}
};
getKit().startAndWait();
}
示例2: ReadBuildTestnetCoin
import com.google.bitcoin.core.PeerAddress; //导入依赖的package包/类
public ReadBuildTestnetCoin(PeerAddress... addresses) {
super(filePrefix, param, addresses);
}
示例3: haha
import com.google.bitcoin.core.PeerAddress; //导入依赖的package包/类
public void haha() throws UnknownHostException {
myAddr = new PeerAddress(InetAddress.getByAddress(localhost), port, 0);
}