mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-20 11:05:54 +00:00
Fix bug in new invariant
This commit is contained in:
@@ -1602,12 +1602,13 @@ NoModifiedUnmodifiableFields::finalize(
|
|||||||
ReadView const& view,
|
ReadView const& view,
|
||||||
beast::Journal const& j)
|
beast::Journal const& j)
|
||||||
{
|
{
|
||||||
static auto const fieldChanged = [](auto const& before,
|
static auto const fieldChanged =
|
||||||
auto const& after,
|
[](auto const& before, auto const& after, auto const& field) {
|
||||||
auto const& field) {
|
bool const beforeField = before->isFieldPresent(field);
|
||||||
return before->isFieldPresent(field) != after->isFieldPresent(field) ||
|
bool const afterField = after->isFieldPresent(field);
|
||||||
before->at(field) != after->at(field);
|
return beforeField != afterField ||
|
||||||
};
|
(afterField && before->at(field) != after->at(field));
|
||||||
|
};
|
||||||
for (auto const& slePair : changedEntries_)
|
for (auto const& slePair : changedEntries_)
|
||||||
{
|
{
|
||||||
auto const& before = slePair.first;
|
auto const& before = slePair.first;
|
||||||
|
|||||||
Reference in New Issue
Block a user