mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2024-11-19 18:00:39 +01:00
Add a note that spending the genesis transaction should be impossible.
This commit is contained in:
parent
fd941fe46a
commit
5e0d4a168e
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user