Hooks-chaining alpha

This is a squash of 241 commits from https://github.com/XRPL-Labs/xrpld-hooks/tree/hooks-chaining
Ready for forward porting to rippled 1.8.3
This commit is contained in:
Richard Holland
2020-07-21 17:09:06 +02:00
parent 04d642387f
commit b33c91f761
66 changed files with 8276 additions and 36 deletions

View File

@@ -42,6 +42,11 @@ STArray::STArray(int n)
v_.reserve(n);
}
STArray::STArray(std::vector<STObject> const& v, SField const& f) : STBase(f)
{
v_ = v;
}
STArray::STArray(SField const& f) : STBase(f)
{
}
@@ -74,7 +79,7 @@ STArray::STArray(SerialIter& sit, SField const& f, int depth) : STBase(f)
{
JLOG(debugLog().error())
<< "Unknown field: " << type << "/" << field;
Throw<std::runtime_error>("Unknown field");
Throw<std::runtime_error>("Unknown field - In Array");
}
if (fn.fieldType != STI_OBJECT)