refactor: Rename (mostly keylet) functions to more closely match the docs (#7059)

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Mayukha Vadari
2026-06-26 06:24:12 -04:00
committed by GitHub
parent 0711a7b493
commit b9eee1d245
114 changed files with 825 additions and 812 deletions

View File

@@ -80,7 +80,7 @@ getTrustFlag(
Currency const& cur,
TrustFlag flag)
{
if (auto sle = env.le(keylet::line(src, dst, cur)))
if (auto sle = env.le(keylet::trustLine(src, dst, cur)))
{
auto const useHigh = src.id() > dst.id();
return sle->isFlag(trustFlag(flag, useHigh));
@@ -454,7 +454,7 @@ struct ExistingElementPool
for (auto const& c : currencies)
{
// Line balance
auto const lk = keylet::line(*ai1, *ai2, c);
auto const lk = keylet::trustLine(*ai1, *ai2, c);
auto const b1 = lineBalance(v1, lk);
auto const b2 = lineBalance(v2, lk);
if (b1 != b2)