Basic locked utxo testing

This commit is contained in:
instagibbs 2016-03-30 15:05:03 -04:00 committed by Gregory Sanders
parent 0fcad6701f
commit c81a726f64
3 changed files with 131 additions and 1 deletions

View file

@ -1149,7 +1149,7 @@ bool GetLockedOutputs(const uint256 &genesisHash, const CAmount &nAmount, std::v
std::list<std::pair<COutPoint, CAmount> >::iterator it = locksList.begin();
std::advance(it, idx);
const std::pair<COutPoint, CAmount> &lock = (*it);
//Should run this first
//Erase locks that have been spent in an active block
CCoins coins;
if (!pcoinsTip->GetCoins(lock.first.hash, coins) || !coins.IsAvailable(lock.first.n)) {