| 308 | } |
| 309 | |
| 310 | bool CCoinsViewCache::HaveInputs(const CTransaction& tx) const |
| 311 | { |
| 312 | if (!tx.IsCoinBase()) { |
| 313 | for (unsigned int i = 0; i < tx.vin.size(); i++) { |
| 314 | if (!HaveCoin(tx.vin[i].prevout)) { |
| 315 | return false; |
| 316 | } |
| 317 | } |
| 318 | } |
| 319 | return true; |
| 320 | } |
| 321 | |
| 322 | void CCoinsViewCache::ReallocateCache() |
| 323 | { |