| 309 | } |
| 310 | |
| 311 | bool IsIssuanceInMoneyRange(const CTransaction& tx) |
| 312 | { |
| 313 | for (size_t i = 0; i < tx.vin.size(); ++i) { |
| 314 | const CAssetIssuance& issuance = tx.vin[i].assetIssuance; |
| 315 | if (issuance.IsNull()) { |
| 316 | continue; |
| 317 | } |
| 318 | if (issuance.nAmount.IsExplicit() && !MoneyRange(issuance.nAmount.GetAmount())) { |
| 319 | return false; |
| 320 | } |
| 321 | // check the reissuance token is in range |
| 322 | if (!issuance.nInflationKeys.IsNull() && issuance.nInflationKeys.IsExplicit() && !MoneyRange(issuance.nInflationKeys.GetAmount())) { |
| 323 | return false; |
| 324 | } |
| 325 | } |
| 326 | return true; |
| 327 | } |
| 328 | |
| 329 | bool SpendsNonAnchorWitnessProg(const CTransaction& tx, const CCoinsViewCache& prevouts) |
| 330 | { |
no test coverage detected