From da8973b86fd4fbfcdb5d04ffeba08bba8a0f42a7 Mon Sep 17 00:00:00 2001 From: Mayukha Vadari Date: Tue, 18 Jul 2023 16:06:41 -0700 Subject: [PATCH] add view updates for account SLEs (#4629) Signed-off-by: Manoj Doshi --- src/ripple/app/tx/impl/SetAccount.cpp | 2 ++ src/ripple/app/tx/impl/SetRegularKey.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/ripple/app/tx/impl/SetAccount.cpp b/src/ripple/app/tx/impl/SetAccount.cpp index 8cbee5fd7..efcee2714 100644 --- a/src/ripple/app/tx/impl/SetAccount.cpp +++ b/src/ripple/app/tx/impl/SetAccount.cpp @@ -629,6 +629,8 @@ SetAccount::doApply() if (uFlagsIn != uFlagsOut) sle->setFieldU32(sfFlags, uFlagsOut); + ctx_.view().update(sle); + return tesSUCCESS; } diff --git a/src/ripple/app/tx/impl/SetRegularKey.cpp b/src/ripple/app/tx/impl/SetRegularKey.cpp index 34a8b7d23..8b789d75a 100644 --- a/src/ripple/app/tx/impl/SetRegularKey.cpp +++ b/src/ripple/app/tx/impl/SetRegularKey.cpp @@ -96,6 +96,8 @@ SetRegularKey::doApply() sle->makeFieldAbsent(sfRegularKey); } + ctx_.view().update(sle); + return tesSUCCESS; }