MCPcopy Create free account
hub / github.com/ElementsProject/elements / GetNumIssuances

Function GetNumIssuances

src/issuance.cpp:7–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5#include <consensus/amount.h>
6
7size_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
23void GenerateAssetEntropy(uint256& entropy, const COutPoint& prevout, const uint256& contracthash)
24{

Callers 3

VerifyAmountsFunction · 0.85
SetBlindingDataMethod · 0.85
GetBlindingDataMethod · 0.85

Calls 2

sizeMethod · 0.45
IsNullMethod · 0.45

Tested by

no test coverage detected