3
0
mirror of https://github.com/Qortal/altcoinj.git synced 2025-01-31 15:22:16 +00:00

Remove usage of deprecated method in PeerTest.

This commit is contained in:
Mike Hearn 2013-12-11 10:39:31 -08:00
parent 24d38cdba4
commit 2f8740f8a8

View File

@ -892,7 +892,7 @@ public class PeerTest extends TestWithNetworkConnections {
peerDisconnected.set(null);
}
});
final NetworkParameters params = TestNet3Params.testNet();
final NetworkParameters params = TestNet3Params.get();
BitcoinSerializer serializer = new BitcoinSerializer(params);
// Now write some bogus truncated message.
ByteArrayOutputStream out = new ByteArrayOutputStream();