Returned print of CC address in getrawtransaction and similar functions.

This commit is contained in:
Mihailo Milenkovic
2019-01-02 20:51:42 +01:00
parent 3847272ab2
commit 79c1797de3

View File

@@ -468,26 +468,27 @@ bool ExtractDestinations(const CScript& scriptPubKey, txnouttype& typeRet, vecto
if (addressRet.empty()) if (addressRet.empty())
return false; return false;
} }
else if (IsCryptoConditionsEnabled() != 0 && typeRet == TX_CRYPTOCONDITION) // Removed to get CC address printed in getrawtransaction and decoderawtransaction
{ // else if (IsCryptoConditionsEnabled() != 0 && typeRet == TX_CRYPTOCONDITION)
nRequiredRet = vSolutions.front()[0]; // {
for (unsigned int i = 1; i < vSolutions.size()-1; i++) // nRequiredRet = vSolutions.front()[0];
{ // for (unsigned int i = 1; i < vSolutions.size()-1; i++)
CTxDestination address; // {
if (vSolutions[i].size() == 20) // CTxDestination address;
{ // if (vSolutions[i].size() == 20)
address = CKeyID(uint160(vSolutions[i])); // {
} // address = CKeyID(uint160(vSolutions[i]));
else // }
{ // else
address = CPubKey(vSolutions[i]); // {
} // address = CPubKey(vSolutions[i]);
addressRet.push_back(address); // }
} // addressRet.push_back(address);
// }
if (addressRet.empty()) // if (addressRet.empty())
return false; // return false;
} // }
else else
{ {
nRequiredRet = 1; nRequiredRet = 1;