mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Rename timebase switches from 'amendment' to 'fix'
This commit is contained in:
@@ -328,7 +328,7 @@ TER RippleCalc::rippleCalculate (detail::FlowDebugInfo* flowDebugInfo)
|
||||
boost::container::flat_set<uint256> unfundedOffersFromBestPaths;
|
||||
|
||||
int iPass = 0;
|
||||
auto const dcSwitch = amendmentRIPD1141(view.info().parentCloseTime);
|
||||
auto const dcSwitch = fix1141(view.info().parentCloseTime);
|
||||
|
||||
while (resultCode == temUNCERTAIN)
|
||||
{
|
||||
|
||||
@@ -27,7 +27,7 @@ namespace path {
|
||||
|
||||
TER PathCursor::advanceNode (STAmount const& amount, bool reverse, bool callerHasLiquidity) const
|
||||
{
|
||||
bool const multi = amendmentRIPD1141 (view ().info ().parentCloseTime)
|
||||
bool const multi = fix1141 (view ().info ().parentCloseTime)
|
||||
? (multiQuality_ || (!callerHasLiquidity && amount == zero))
|
||||
: (multiQuality_ || amount == zero);
|
||||
|
||||
|
||||
@@ -247,7 +247,7 @@ TER PathCursor::deliverNodeReverseImpl (
|
||||
saInPassAct,
|
||||
saOutAct > zero);
|
||||
|
||||
if (amendmentRIPD1141(view().info().parentCloseTime))
|
||||
if (fix1141(view().info().parentCloseTime))
|
||||
{
|
||||
// The recursive call is dry this time, but we have liquidity
|
||||
// from previous calls
|
||||
|
||||
@@ -418,7 +418,7 @@ BookStep<TIn, TOut>::revImp (
|
||||
// subtracting them leaves a result of zero. This can cause the check for
|
||||
// (stpAmt.out > remainingOut) to incorrectly think an offer will be funded
|
||||
// after subtracting remainingIn.
|
||||
if (amendmentRIPD1298(sb.parentCloseTime()))
|
||||
if (fix1298(sb.parentCloseTime()))
|
||||
return offer.fully_consumed();
|
||||
else
|
||||
return false;
|
||||
@@ -575,7 +575,7 @@ BookStep<TIn, TOut>::fwdImp (
|
||||
// subtracting them leaves a result of zero. This can cause the check for
|
||||
// (stpAmt.in > remainingIn) to incorrectly think an offer will be funded
|
||||
// after subtracting remainingIn.
|
||||
if (amendmentRIPD1298(sb.parentCloseTime()))
|
||||
if (fix1298(sb.parentCloseTime()))
|
||||
processMore = processMore || offer.fully_consumed();
|
||||
|
||||
return processMore;
|
||||
@@ -692,7 +692,7 @@ BookStep<TIn, TOut>::check(StrandContext const& ctx) const
|
||||
return temBAD_PATH_LOOP;
|
||||
}
|
||||
|
||||
if (amendmentRIPD1443(ctx.view.info().parentCloseTime))
|
||||
if (fix1443(ctx.view.info().parentCloseTime))
|
||||
{
|
||||
if (ctx.prevStep)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user