From 41d2a8c62d45bcc60faaf9c6989dd0cc2008c898 Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Tue, 30 Jul 2013 15:50:24 +0200 Subject: [PATCH] Fix block tests --- .../java/com/google/bitcoin/core/FullBlockTestGenerator.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/src/test/java/com/google/bitcoin/core/FullBlockTestGenerator.java b/core/src/test/java/com/google/bitcoin/core/FullBlockTestGenerator.java index fbef0947..83672a23 100644 --- a/core/src/test/java/com/google/bitcoin/core/FullBlockTestGenerator.java +++ b/core/src/test/java/com/google/bitcoin/core/FullBlockTestGenerator.java @@ -1292,6 +1292,11 @@ public class FullBlockTestGenerator { } b69.solve(); blocks.add(new BlockAndValidity(blockToHeightMap, b69, true, false, b69.getHash(), chainHeadHeight + 21, "b69")); + + spendableOutputs.offer(new TransactionOutPointWithValue( + new TransactionOutPoint(params, 0, b69.getTransactions().get(0).getHash()), + b69.getTransactions().get(0).getOutputs().get(0).getValue(), + b69.getTransactions().get(0).getOutputs().get(0).getScriptPubKey())); // Test spending the outpoint of a non-existent transaction // -> b53 (14) -> b55 (15) -> b57 (16) -> b60 (17) -> b64 (18) -> b65 (19) -> b69 (20)