Skip to content

Commit

Permalink
FakeTxBuilder: remove deprecated methods that take NetworkParameters
Browse files Browse the repository at this point in the history
  • Loading branch information
schildbach committed Sep 2, 2024
1 parent 96c60b6 commit d67a71c
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions core/src/main/java/org/bitcoinj/testing/FakeTxBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
import org.bitcoinj.core.Block;
import org.bitcoinj.base.Coin;
import org.bitcoinj.crypto.ECKey;
import org.bitcoinj.core.NetworkParameters;
import org.bitcoinj.core.ProtocolException;
import org.bitcoinj.base.Sha256Hash;
import org.bitcoinj.core.StoredBlock;
Expand Down Expand Up @@ -64,15 +63,6 @@ public static Transaction createFakeTx(Network network) {
return createFakeTxWithoutChangeAddress(Coin.COIN, randomAddress(network));
}

/**
* Create a fake transaction, without change.
* @deprecated use {@link FakeTxBuilder#createFakeTx(Network)}
*/
@Deprecated
public static Transaction createFakeTx(final NetworkParameters params) {
return createFakeTxWithoutChangeAddress(Coin.COIN, randomAddress(params.network()));
}

/** Create a fake transaction, without change. */
public static Transaction createFakeTxWithoutChange(final TransactionOutput output) {
Transaction prevTx = FakeTxBuilder.createFakeTx(Coin.COIN, randomKey());
Expand Down Expand Up @@ -157,16 +147,6 @@ public static Transaction createFakeTx(Network network, Coin value, Address to)
return createFakeTxWithChangeAddress(value, to, randomAddress(network));
}

/**
* Create a fake TX of sufficient realism to exercise the unit tests. Two outputs, one to us, one to somewhere
* else to simulate change. There is one random input.
* @deprecated use {@link #createFakeTx(Network, Coin, Address)}
*/
@Deprecated
public static Transaction createFakeTx(NetworkParameters params, Coin value, Address to) {
return createFakeTx(params.network(), value, to);
}

/**
* Create a fake TX of sufficient realism to exercise the unit tests. Two outputs, one to us, one to somewhere
* else to simulate change. There is one random input.
Expand Down

0 comments on commit d67a71c

Please sign in to comment.