mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2024-11-19 18:00:39 +01:00
Fix two false-positives in test cases.
This commit is contained in:
parent
9d46c48db9
commit
ad2c339d85
@ -870,6 +870,7 @@ public class Block extends Message {
|
||||
// but it must be unique to avoid 'different' transactions looking the same.
|
||||
byte[] counter = new byte[32];
|
||||
counter[0] = (byte) txCounter++;
|
||||
counter[1] = 1;
|
||||
input.getOutpoint().setHash(new Sha256Hash(counter));
|
||||
t.addInput(input);
|
||||
b.addTransaction(t);
|
||||
|
@ -219,6 +219,7 @@ public class ChainSplitTest {
|
||||
// -> b2
|
||||
Block b3 = b1.createNextBlock(someOtherGuy);
|
||||
b3.addTransaction(b2.transactions.get(1));
|
||||
b3.solve();
|
||||
chain.add(b3);
|
||||
assertEquals("50.00", Utils.bitcoinValueToFriendlyString(wallet.getBalance()));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user