]> Git Repo - VerusCoin.git/commitdiff
Eliminate redundant check from PrecheckIdentityPrimary
authormiketout <[email protected]>
Thu, 4 Jun 2020 20:13:29 +0000 (13:13 -0700)
committermiketout <[email protected]>
Thu, 4 Jun 2020 20:13:29 +0000 (13:13 -0700)
src/pbaas/identity.cpp

index e7686801db48a30ce1c06b76f1bc9b93670c569e..57017eaae9a038a0c261c0e901c1d6919f956e0c 100644 (file)
@@ -854,24 +854,6 @@ bool PrecheckIdentityPrimary(const CTransaction &tx, int32_t outNum, CValidation
         }
     }
 
-    std::vector<CTxDestination> dests;
-    int minSigs;
-    txnouttype outType;
-    if (ExtractDestinations(tx.vout[outNum].scriptPubKey, outType, dests, minSigs))
-    {
-        uint160 thisID = identity.GetID();
-        for (auto &dest : dests)
-        {
-            uint160 oneDestID;
-            if (dest.which() == COptCCParams::ADDRTYPE_ID && 
-                (oneDestID = GetDestinationID(dest)) != thisID &&
-                !CIdentity::LookupIdentity(CIdentityID(oneDestID)).IsValid())
-            {
-                return state.Error("Destination includes invalid identity");
-            }
-        }
-    }
-
     extern uint160 VERUS_CHAINID;
     extern std::string VERUS_CHAINNAME;
 
This page took 0.027925 seconds and 4 git commands to generate.