Skip to content

Commit

Permalink
Merge pull request #225 from dexX7/mcore-add-main-ecosystem-check
Browse files Browse the repository at this point in the history
Add: isMainEcosystemProperty(unsigned int property)
  • Loading branch information
m21 committed Dec 8, 2014
2 parents 2ccd8e2 + 65d763d commit 0a2acbe
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 @@ -496,6 +496,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 0a2acbe

Please sign in to comment.