TX_PUBKEY_DROP fix
authoralex <balthazar@yandex.ru>
Fri, 19 Feb 2016 18:06:37 +0000 (21:06 +0300)
committeralex <balthazar@yandex.ru>
Fri, 19 Feb 2016 18:06:37 +0000 (21:06 +0300)
src/rpcrawtransaction.cpp

index 4bcf911..3106ce3 100644 (file)
@@ -43,11 +43,9 @@ void ScriptPubKeyToJSON(const CScript& scriptPubKey, Object& out, bool fIncludeH
         if (type == TX_PUBKEY_DROP)
         {
             vector<valtype> vSolutions;
-            if (!Solver(scriptPubKey, type, vSolutions))
-            {
-                out.push_back(Pair("keyVariant", HexStr(vSolutions[0])));
-                out.push_back(Pair("R", HexStr(vSolutions[1])));
-            }
+            Solver(scriptPubKey, type, vSolutions);
+            out.push_back(Pair("keyVariant", HexStr(vSolutions[0])));
+            out.push_back(Pair("R", HexStr(vSolutions[1])));
         }
 
         Array a;