3
0
mirror of https://github.com/Qortal/altcoinj.git synced 2025-02-01 07:42:17 +00:00

Fix missing spendable coinbase

This commit is contained in:
Matt Corallo 2013-10-29 00:22:42 -04:00 committed by Mike Hearn
parent c824bd4491
commit ce41c10a9e

View File

@ -1533,6 +1533,10 @@ public class FullBlockTestGenerator {
Block b77 = createNextBlock(b76, chainHeadHeight + 25, out24, null);
blocks.add(new BlockAndValidity(blockToHeightMap, hashHeaderMap, b77, true, false, b77.getHash(), chainHeadHeight + 25, "b77"));
spendableOutputs.offer(new TransactionOutPointWithValue(
new TransactionOutPoint(params, 0, b77.getTransactions().get(0).getHash()),
b77.getTransactions().get(0).getOutputs().get(0).getValue(),
b77.getTransactions().get(0).getOutputs().get(0).getScriptPubKey()));
Block b78 = createNextBlock(b77, chainHeadHeight + 26, out25, null);
Transaction b78tx = new Transaction(params);