UNLReport working

This commit is contained in:
Richard Holland
2023-06-15 09:45:11 +00:00
parent c33e64fa3d
commit 95bef7ced3
5 changed files with 14 additions and 6 deletions

View File

@@ -175,12 +175,14 @@ Change::applyUNLReport()
{
auto sle = view().peek(keylet::UNLReport());
bool const created = !!sle;
bool const created = !sle;
if (created)
sle = std::make_shared<SLE>(keylet::UNLReport());
sle->setFieldArray(sfActiveValidators, ctx_.tx.getFieldArray(sfActiveValidators));
auto const av = ctx_.tx.getFieldArray(sfActiveValidators);
sle->setFieldArray(sfActiveValidators, av);
if (created)
view().insert(sle);