mirror of
https://github.com/XRPLF/rippled.git
synced 2026-08-23 15:20:54 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user