mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Fix STPathSet serialization for multiple paths.
This commit is contained in:
@@ -540,7 +540,6 @@ void STPathSet::add(Serializer& s) const
|
||||
if (!bFirst)
|
||||
{
|
||||
s.add8(STPathElement::typeBoundary);
|
||||
bFirst = false;
|
||||
}
|
||||
|
||||
BOOST_FOREACH(const STPathElement& speElement, spPath)
|
||||
@@ -558,6 +557,8 @@ void STPathSet::add(Serializer& s) const
|
||||
if (iType & STPathElement::typeIssuer)
|
||||
s.add160(speElement.getIssuerID());
|
||||
}
|
||||
|
||||
bFirst = false;
|
||||
}
|
||||
s.add8(STPathElement::typeEnd);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user