]> Git Repo - VerusCoin.git/commitdiff
Correctly default revocation and recovery IDs on PBaaS chains
authormiketout <[email protected]>
Wed, 28 Apr 2021 06:01:27 +0000 (23:01 -0700)
committermiketout <[email protected]>
Wed, 28 Apr 2021 06:01:27 +0000 (23:01 -0700)
src/rpc/pbaasrpc.cpp

index e2459b33b9a6e0dae1bb544a9f4aaf5892112e13..907328e054fe3c980d08a26ba0c6bff2bea6f258 100644 (file)
@@ -5502,6 +5502,15 @@ UniValue registeridentity(const UniValue& params, bool fHelp)
 
     uint160 newIDID = newID.GetID();
 
+    if (find_value(rawID, "revocationauthority").isNull())
+    {
+        newID.revocationAuthority = newID.GetID();
+    }
+    if (find_value(rawID, "recoveryauthority").isNull())
+    {
+        newID.recoveryAuthority = newID.GetID();
+    }
+
     CAmount feeOffer;
     CAmount minFeeOffer = reservation.referral.IsNull() ? 
                           ConnectedChains.ThisChain().IDFullRegistrationAmount() : 
This page took 0.031368 seconds and 4 git commands to generate.