mirror of
https://github.com/Xahau/xahaud.git
synced 2026-04-29 15:37:46 +00:00
UNLReport working
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user