Fix the behavior of co-sign + pre-fund

This commit is contained in:
tequ
2025-10-28 17:18:38 +09:00
parent 4fe7e87b4f
commit d0bcca6bf1
25 changed files with 143 additions and 79 deletions

View File

@@ -520,7 +520,6 @@ adjustOwnerCount(
std::shared_ptr<SLE> const& accountSle,
std::optional<std::shared_ptr<SLE>> const& sponsorSle,
std::int32_t amount,
bool const isSponsorCoSigning,
beast::Journal j);
inline void
@@ -532,8 +531,7 @@ adjustOwnerCount(
std::int32_t amount,
beast::Journal j)
{
auto const isCoSigning = isSponsorReserveCoSigning(tx);
adjustOwnerCount(view, accountSle, sponsorSle, amount, isCoSigning, j);
adjustOwnerCount(view, accountSle, sponsorSle, amount, j);
}
inline void
@@ -555,19 +553,6 @@ adjustOwnerCount(
j);
}
inline void
reduceOwnerCount(
ApplyView& view,
std::shared_ptr<SLE> const& accountSle,
std::optional<std::shared_ptr<SLE>> const& sponsorSle,
std::int32_t amount,
beast::Journal j)
{
XRPL_ASSERT(
amount <= 0, "ripple::reduceOwnerCount : amount must be negative");
adjustOwnerCount(view, accountSle, sponsorSle, amount, true, j);
}
/** @{ */
/** Returns the first entry in the directory, advancing the index