| 347 | } |
| 348 | |
| 349 | bool CCoinsViewCache::HaveInputs(const CTransaction& tx) const |
| 350 | { |
| 351 | if (!tx.IsCoinBase()) { |
| 352 | for (unsigned int i = 0; i < tx.vin.size(); i++) { |
| 353 | if (tx.vin[i].m_is_pegin) { |
| 354 | continue; |
| 355 | } |
| 356 | if (!HaveCoin(tx.vin[i].prevout)) { |
| 357 | return false; |
| 358 | } |
| 359 | } |
| 360 | } |
| 361 | return true; |
| 362 | } |
| 363 | |
| 364 | void CCoinsViewCache::ReallocateCache() |
| 365 | { |