mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-02-24 22:58:32 +01:00
Make TestUtils.roundTripTransaction public.
This commit is contained in:
parent
ee715a5f59
commit
75e467dfc4
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue