Add path expansion to transaction engine.

This commit is contained in:
Arthur Britto
2012-08-03 14:57:52 -07:00
parent 42bd29c212
commit 1a6a6231cc
4 changed files with 98 additions and 17 deletions

View File

@@ -318,13 +318,13 @@ STPathSet* STPathSet::construct(SerializerIterator& s, const char *name)
return new STPathSet(name, paths);
}
}
else if (iType & STPathElement::typeStrayBits)
else if (iType & ~STPathElement::typeValidBits)
{
throw std::runtime_error("bad path element");
}
else
{
bool bAccount = !!(iType & STPathElement::typeAccount);
bool bAccount = !!(iType & STPathElement::typeAccount);
bool bCurrency = !!(iType & STPathElement::typeCurrency);
bool bIssuer = !!(iType & STPathElement::typeIssuer);