]> Git Repo - VerusCoin.git/commitdiff
More destinations with extended keys
authormiketout <[email protected]>
Wed, 9 Sep 2020 03:00:46 +0000 (20:00 -0700)
committermiketout <[email protected]>
Wed, 9 Sep 2020 03:00:46 +0000 (20:00 -0700)
src/script/standard.cpp

index d77125ceca8ca686f7109e67f1e24e2d7d05203e..183a7b69c95dad91eb82a1f38dc8c98793d949f2 100644 (file)
@@ -677,11 +677,17 @@ bool ExtractDestinations(const CScript& scriptPubKey,
                     }
                 }
 
-                for (int i = -1; ccValid && i < (int)(p.vData.size() - 1); i++)
+                for (int i = 0; ccValid && i < (int)(p.vData.size() - 1); i++)
                 {
                     // first, process P, then any sub-conditions
                     COptCCParams _oneP;
-                    COptCCParams &oneP = (i == -1) ? p : (_oneP = COptCCParams(p.vData[i]));
+                    COptCCParams &oneP = (i == 0) ? p : (_oneP = COptCCParams(p.vData[i]));
+
+                    ccValid = oneP.IsValid();
+                    if (!ccValid)
+                    {
+                        _oneP = COptCCParams(p.vData[i]);
+                    }
 
                     if (ccValid = oneP.IsValid())
                     {
This page took 0.027303 seconds and 4 git commands to generate.