|
|
@ -531,20 +531,24 @@ void WalletModel::listCoins(std::map<QString, std::vector<COutput> >& mapCoins) |
|
|
|
|
|
|
|
|
|
|
|
bool WalletModel::isLockedCoin(uint256 hash, unsigned int n) const |
|
|
|
bool WalletModel::isLockedCoin(uint256 hash, unsigned int n) const |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
LOCK(wallet->cs_wallet); |
|
|
|
return wallet->IsLockedCoin(hash, n); |
|
|
|
return wallet->IsLockedCoin(hash, n); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void WalletModel::lockCoin(COutPoint& output) |
|
|
|
void WalletModel::lockCoin(COutPoint& output) |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
LOCK(wallet->cs_wallet); |
|
|
|
wallet->LockCoin(output); |
|
|
|
wallet->LockCoin(output); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void WalletModel::unlockCoin(COutPoint& output) |
|
|
|
void WalletModel::unlockCoin(COutPoint& output) |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
LOCK(wallet->cs_wallet); |
|
|
|
wallet->UnlockCoin(output); |
|
|
|
wallet->UnlockCoin(output); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void WalletModel::listLockedCoins(std::vector<COutPoint>& vOutpts) |
|
|
|
void WalletModel::listLockedCoins(std::vector<COutPoint>& vOutpts) |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
LOCK(wallet->cs_wallet); |
|
|
|
wallet->ListLockedCoins(vOutpts); |
|
|
|
wallet->ListLockedCoins(vOutpts); |
|
|
|
} |
|
|
|
} |
|
|
|