Fix two false-positives in test cases.

This commit is contained in:
Matt Corallo 2012-07-10 00:50:00 +02:00 committed by Mike Hearn
parent 9d46c48db9
commit ad2c339d85
2 changed files with 2 additions and 0 deletions

View File

@ -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);

View File

@ -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()));
}