mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-01-18 21:32:35 +01:00
FakeTxBuilder: use throwaway key rather than address in createFakeDoubleSpendTxns()
Addresses are expensive to create, as we need to know a network they are created for.
This commit is contained in:
parent
8a047d48b9
commit
a2c242cbfe
@ -218,7 +218,7 @@ public class FakeTxBuilder {
|
||||
public static DoubleSpends createFakeDoubleSpendTxns(NetworkParameters params, Address to) {
|
||||
DoubleSpends doubleSpends = new DoubleSpends();
|
||||
Coin value = COIN;
|
||||
Address someBadGuy = randomAddress(params);
|
||||
ECKey someBadGuy = randomKey();
|
||||
|
||||
doubleSpends.prevTx = new Transaction(params);
|
||||
TransactionOutput prevOut = new TransactionOutput(doubleSpends.prevTx, value, someBadGuy);
|
||||
|
Loading…
Reference in New Issue
Block a user