| 5 | #include <consensus/amount.h> |
| 6 | |
| 7 | size_t GetNumIssuances(const CTransaction& tx) |
| 8 | { |
| 9 | unsigned int num_issuances = 0; |
| 10 | for (unsigned int i = 0; i < tx.vin.size(); i++) { |
| 11 | if (!tx.vin[i].assetIssuance.IsNull()) { |
| 12 | if (!tx.vin[i].assetIssuance.nAmount.IsNull()) { |
| 13 | num_issuances++; |
| 14 | } |
| 15 | if (!tx.vin[i].assetIssuance.nInflationKeys.IsNull()) { |
| 16 | num_issuances++; |
| 17 | } |
| 18 | } |
| 19 | } |
| 20 | return num_issuances; |
| 21 | } |
| 22 | |
| 23 | void GenerateAssetEntropy(uint256& entropy, const COutPoint& prevout, const uint256& contracthash) |
| 24 | { |
no test coverage detected