mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
Basic locked utxo testing
This commit is contained in:
parent
0fcad6701f
commit
c81a726f64
3 changed files with 131 additions and 1 deletions
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue