Add a note that spending the genesis transaction should be impossible.

This commit is contained in:
Mike Hearn 2012-10-08 17:13:49 +02:00
parent fd941fe46a
commit 5e0d4a168e

View File

@ -123,6 +123,7 @@ public class FullPrunedBlockChain extends AbstractBlockChain {
in.getOutpoint().getIndex());
if (prevOut == null)
throw new VerificationException("Attempted to spend a non-existent or already spent output!");
// TODO: Check we're not spending the genesis transaction here. Satoshis code won't allow it.
//TODO: check script here
blockStore.removeUnspentTransactionOutput(prevOut);
txOutsSpent.add(prevOut);