Skip to content

Commit

Permalink
[FOLD] Update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
gregtatcam committed Oct 26, 2023
1 parent 3a05f21 commit c0a6988
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/test/rpc/GetAggregatePrice_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ class GetAggregatePrice_test : public beast::unit_test::suite
}
};

// can find price data for all price oracle instances
// Aggregate data set includes all price oracle instances
{
Env env(*this);
std::vector<std::pair<Account, std::uint32_t>> oracles;
Expand All @@ -141,8 +141,8 @@ class GetAggregatePrice_test : public beast::unit_test::suite
BEAST_EXPECT(ret[jss::time] == 90);
}

// reduced data set as some price oracles have the price data
// beyond three updated ledgers
// A reduced dataset, as some price oracles have data beyond three
// updated ledgers
{
Env env(*this);
std::vector<std::pair<Account, std::uint32_t>> oracles;
Expand All @@ -153,7 +153,7 @@ class GetAggregatePrice_test : public beast::unit_test::suite
env,
{.owner = oracles[i].first, .sequence = oracles[i].second},
false);
// push XRP/USD farther than three ledger, so this price
// push XRP/USD by more than three ledgers, so this price
// oracle is not included in the dataset
oracle.set(UpdateArg{.series = {{"XRP", "EUR", 740, 1}}});
oracle.set(UpdateArg{.series = {{"XRP", "EUR", 740, 1}}});
Expand Down Expand Up @@ -188,7 +188,7 @@ class GetAggregatePrice_test : public beast::unit_test::suite
BEAST_EXPECT(ret[jss::time] == 90);
}

// reduced data set because of the time threshold
// Reduced data set because of the time threshold
{
Env env(*this);
std::vector<std::pair<Account, std::uint32_t>> oracles;
Expand Down

0 comments on commit c0a6988

Please sign in to comment.