data parsing issues

This commit is contained in:
miketout
2018-10-06 10:05:48 -07:00
parent 68b9a352da
commit a1fd99cf34
3 changed files with 9 additions and 12 deletions

View File

@@ -191,16 +191,11 @@ bool Solver(const CScript& scriptPubKey, txnouttype& typeRet, vector<vector<unsi
if (vParams.size())
{
COptCCParams cp = COptCCParams(vParams[0]);
if (cp.IsValid() && vParams.size() > cp.n)
if (cp.IsValid())
{
// all addresses that should be there must be 33 byte pub keys
for (int i = 1; i <= cp.n; i++)
for (auto k : cp.vKeys)
{
if (vParams[i].size() != 33)
{
// we accept no errors
return false;
}
vSolutionsRet.push_back(std::vector<unsigned char>(k.begin(), k.end()));
}
}
}