From 65d763dcec5314f3531358be68ceb156e8b5416f Mon Sep 17 00:00:00 2001 From: dexX7 Date: Fri, 5 Dec 2014 19:45:38 +0100 Subject: [PATCH] Add: isMainEcosystemProperty(unsigned int property) Allows to check, if a property is in the main ecosystem. --- src/mastercore.cpp | 7 +++++++ src/mastercore.h | 1 + 2 files changed, 8 insertions(+) diff --git a/src/mastercore.cpp b/src/mastercore.cpp index db672db67ee53..d6844b8035407 100644 --- a/src/mastercore.cpp +++ b/src/mastercore.cpp @@ -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) diff --git a/src/mastercore.h b/src/mastercore.h index 5721b82eece5d..ba6b2fe03bc6b 100644 --- a/src/mastercore.h +++ b/src/mastercore.h @@ -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);