Use peerNoVerification

This commit is contained in:
Manfred Karrer 2014-11-09 14:14:42 +01:00
parent 5d5fd49a45
commit c12b94b7c2

View File

@ -114,7 +114,8 @@ class BootstrappedPeerFactory {
try {
setState(BootstrapState.PEER_CREATION, "We create a P2P node.");
PeerMapConfiguration pmc = new PeerMapConfiguration(Utils.makeSHAHash(keyPair.getPublic().getEncoded()));
Number160 peerId = Utils.makeSHAHash(keyPair.getPublic().getEncoded());
PeerMapConfiguration pmc = new PeerMapConfiguration(peerId).peerNoVerification();
PeerMap pm = new PeerMap(pmc);
peer = new PeerBuilder(keyPair).ports(port).peerMap(pm).start();
peerDHT = new PeerBuilderDHT(peer).storageLayer(new StorageLayer(storage)).start();