Skip to content

Commit

Permalink
Mempool verification
Browse files Browse the repository at this point in the history
  • Loading branch information
sipa committed Nov 24, 2012
1 parent 2115c93 commit 7e15b68
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main.cpp
Expand Up @@ -3559,6 +3559,10 @@ CBlock* CreateNewBlock(CReserveKey& reservekey)
nTotalIn += mempool.mapTx[txin.prevout.hash].vout[txin.prevout.n].nValue; nTotalIn += mempool.mapTx[txin.prevout.hash].vout[txin.prevout.n].nValue;
continue; continue;
} }

if (!txindex.vSpent[txin.prevout.n].IsNull())
printf("ERROR: mempool transaction input is spent! txid=%s input=%s\n", txPrev.GetHash().ToString().c_str(), txin.prevout.ToString().c_str());

int64 nValueIn = txPrev.vout[txin.prevout.n].nValue; int64 nValueIn = txPrev.vout[txin.prevout.n].nValue;
nTotalIn += nValueIn; nTotalIn += nValueIn;


Expand Down

0 comments on commit 7e15b68

Please sign in to comment.