| 233 | } |
| 234 | |
| 235 | bool CCoinsViewCache::HaveInputs(const CTransaction& tx) const |
| 236 | { |
| 237 | if (!tx.IsCoinBase()) { |
| 238 | for (unsigned int i = 0; i < tx.vin.size(); i++) { |
| 239 | if (!HaveCoin(tx.vin[i].prevout)) { |
| 240 | return false; |
| 241 | } |
| 242 | } |
| 243 | } |
| 244 | return true; |
| 245 | } |
| 246 | |
| 247 | static const size_t MIN_TRANSACTION_OUTPUT_WEIGHT = WITNESS_SCALE_FACTOR * ::GetSerializeSize(CTxOut(), SER_NETWORK, PROTOCOL_VERSION); |
| 248 | static const size_t MAX_OUTPUTS_PER_BLOCK = MAX_BLOCK_WEIGHT / MIN_TRANSACTION_OUTPUT_WEIGHT; |
no test coverage detected