Skip to content

Commit

Permalink
[fixup] rename prevFields -> batchPrevAcctRootFields
Browse files Browse the repository at this point in the history
  • Loading branch information
dangell7 committed Nov 7, 2024
1 parent e4cb784 commit 47120ac
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/xrpld/ledger/ApplyViewImpl.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ class ApplyViewImpl final : public detail::ApplyViewBase
* Takes ownership / use std::move
*/
void
setBatchPrevMetaData(STObject const& prevFields)
setBatchPrevMetaData(STObject const& batchPrevAcctRootFields)
{
batchPrevAcctRootFields_ = prevFields;
batchPrevAcctRootFields_ = batchPrevAcctRootFields;
}

void
Expand Down
6 changes: 3 additions & 3 deletions src/xrpld/ledger/detail/ApplyStateTable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ ApplyStateTable::apply(
TER ter,
std::optional<STAmount> const& deliver,
std::vector<STObject> const& batchExecution,
std::optional<STObject> const& batchPrev,
std::optional<STObject> const& batchPrevAcctRootFields,
beast::Journal j)
{
bool const isBatch = tx.getTxnType() == ttBATCH;
Expand Down Expand Up @@ -216,10 +216,10 @@ ApplyStateTable::apply(
prevs.emplace_back(obj);
}

if (isBatch && nodeType == ltACCOUNT_ROOT && batchPrev)
if (isBatch && nodeType == ltACCOUNT_ROOT && batchPrevAcctRootFields)
{
// TODO: This could fail if the fields already exist
for (auto const& obj : *batchPrev)
for (auto const& obj : *batchPrevAcctRootFields)
prevs.emplace_back(obj);
}

Expand Down
2 changes: 1 addition & 1 deletion src/xrpld/ledger/detail/ApplyStateTable.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class ApplyStateTable
TER ter,
std::optional<STAmount> const& deliver,
std::vector<STObject> const& batchExecution,
std::optional<STObject> const& batchPrev,
std::optional<STObject> const& batchPrevAcctRootFields,
beast::Journal j);

bool
Expand Down

0 comments on commit 47120ac

Please sign in to comment.