| 171 | } |
| 172 | |
| 173 | bool CCoinsViewCache::HaveCoinInCache(const COutPoint &outpoint) const { |
| 174 | CCoinsMap::const_iterator it = cacheCoins.find(outpoint); |
| 175 | return (it != cacheCoins.end() && !it->second.coin.IsSpent()); |
| 176 | } |
| 177 | |
| 178 | uint256 CCoinsViewCache::GetBestBlock() const { |
| 179 | if (m_block_hash.IsNull()) |