3
0
mirror of https://github.com/Qortal/altcoinj.git synced 2025-02-07 06:44:16 +00:00

Make TestUtils.roundTripTransaction public.

This commit is contained in:
Mike Hearn 2013-01-16 17:50:27 +01:00
parent ee715a5f59
commit 75e467dfc4

View File

@ -98,7 +98,7 @@ public class TestUtils {
/**
* Roundtrip a transaction so that it appears as if it has just come from the wire
*/
private static Transaction roundTripTransaction(NetworkParameters params, Transaction tx) throws IOException, ProtocolException {
public static Transaction roundTripTransaction(NetworkParameters params, Transaction tx) throws IOException, ProtocolException {
BitcoinSerializer bs = new BitcoinSerializer(params, true);
ByteArrayOutputStream bos = new ByteArrayOutputStream();
bs.serialize(tx, bos);