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:
parent
ee715a5f59
commit
75e467dfc4
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user