Migrated cryptography and some improvements

This commit is contained in:
2017-06-08 21:56:31 +02:00
parent 83e50e1ad1
commit 1d3340a547
13 changed files with 270 additions and 316 deletions

View File

@ -98,7 +98,7 @@ public class NetworkHandlerTest {
.port(peerAddress.getPort())
.nodeRegistry(new TestNodeRegistry())
.networkHandler(peerNetworkHandler)
.cryptography(new BouncyCryptography())
.cryptography(BouncyCryptography.INSTANCE)
.listener(mock(BitmessageContext.Listener.class))
.customCommandHandler(new CustomCommandHandler() {
@Override
@ -133,7 +133,7 @@ public class NetworkHandlerTest {
.port(6002)
.nodeRegistry(new TestNodeRegistry(peerAddress))
.networkHandler(nodeNetworkHandler)
.cryptography(new BouncyCryptography())
.cryptography(BouncyCryptography.INSTANCE)
.listener(mock(BitmessageContext.Listener.class))
.build();
}