]> Git Repo - VerusCoin.git/commitdiff
PBaaS identity update
authormiketout <[email protected]>
Fri, 23 Apr 2021 01:18:01 +0000 (18:18 -0700)
committermiketout <[email protected]>
Fri, 23 Apr 2021 01:18:01 +0000 (18:18 -0700)
src/pbaas/identity.cpp

index be11a8dfcd0e770736ef6e2c63d8c264c6c78534..724e7be4912af95eae010d334f56ce6a51dfc1f1 100644 (file)
@@ -294,6 +294,8 @@ bool ValidateSpendingIdentityReservation(const CTransaction &tx, int32_t outNum,
     std::vector<CTxDestination> referrers;
     bool valid = true;
 
+    bool isPBaaS = CConstVerusSolutionVector::GetVersionByHeight(height) >= CActivationHeight::ACTIVATE_PBAAS;
+
     for (auto &txout : tx.vout)
     {
         COptCCParams p;
@@ -367,7 +369,8 @@ bool ValidateSpendingIdentityReservation(const CTransaction &tx, int32_t outNum,
     }
 
     // CHECK #2 - must be rooted in this chain
-    if (newIdentity.parent != ConnectedChains.ThisChain().GetID())
+    if (newIdentity.parent != ConnectedChains.ThisChain().GetID() &&
+        !(isPBaaS && newIdentity.GetID() == ASSETCHAINS_CHAINID && IsVerusActive()))
     {
         return state.Error("Identity parent of new identity must be current chain");
     }
This page took 0.030106 seconds and 4 git commands to generate.