mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-01-30 23:02:15 +00: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());
|
in.getOutpoint().getIndex());
|
||||||
if (prevOut == null)
|
if (prevOut == null)
|
||||||
throw new VerificationException("Attempted to spend a non-existent or already spent output!");
|
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
|
//TODO: check script here
|
||||||
blockStore.removeUnspentTransactionOutput(prevOut);
|
blockStore.removeUnspentTransactionOutput(prevOut);
|
||||||
txOutsSpent.add(prevOut);
|
txOutsSpent.add(prevOut);
|
||||||
|
Loading…
Reference in New Issue
Block a user