Skip to content

Commit

Permalink
Add: isMainEcosystemProperty(unsigned int property)
Browse files Browse the repository at this point in the history
Allows to check, if a property is in the main ecosystem.
  • Loading branch information
dexX7 committed Dec 5, 2014
1 parent df6634d commit 65d763d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/mastercore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -499,6 +499,13 @@ bool mastercore::isTestEcosystemProperty(unsigned int property)
return false;
}

bool mastercore::isMainEcosystemProperty(unsigned int property)
{
if ((OMNI_PROPERTY_BTC != property) && !isTestEcosystemProperty(property)) return true;

return false;
}

bool mastercore::isMetaDExOfferActive(const uint256 txid, unsigned int propertyId)
{
for (md_PropertiesMap::iterator my_it = metadex.begin(); my_it != metadex.end(); ++my_it)
Expand Down
1 change: 1 addition & 0 deletions src/mastercore.h
Original file line number Diff line number Diff line change
Expand Up @@ -483,6 +483,7 @@ uint256 send_INTERNAL_1packet(const string &FromAddress, const string &ToAddress
unsigned int PropertyID_2, uint64_t Amount_2, unsigned int TransactionType, int64_t additional, int *error_code = NULL);

bool isTestEcosystemProperty(unsigned int property);
bool isMainEcosystemProperty(unsigned int property);

CMPTally *getTally(const string & address);

Expand Down

0 comments on commit 65d763d

Please sign in to comment.