mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-26 14:05:51 +00:00
Fix bug in qualityUpperBound:
* In and Out parameters were swapped when calculating the rate * In and out qualities were not calculated correctly; use existing functions to get the qualities * Added tests to check that theoretical quality matches actual computed quality * Remove in/out parameter from qualityUpperBound * Rename an overload of qualityUpperBound to adjustQualityWithFees * Add fix amendment
This commit is contained in:
@@ -128,6 +128,7 @@ detail::supportedAmendments ()
|
||||
"fixCheckThreading",
|
||||
"fixPayChanRecipientOwnerDir",
|
||||
"DeletableAccounts",
|
||||
"fixQualityUpperBound",
|
||||
};
|
||||
return supported;
|
||||
}
|
||||
@@ -185,5 +186,6 @@ uint256 const fixMasterKeyAsRegularKey = *getRegisteredFeature("fixMasterKeyAsRe
|
||||
uint256 const fixCheckThreading = *getRegisteredFeature("fixCheckThreading");
|
||||
uint256 const fixPayChanRecipientOwnerDir = *getRegisteredFeature("fixPayChanRecipientOwnerDir");
|
||||
uint256 const featureDeletableAccounts = *getRegisteredFeature("DeletableAccounts");
|
||||
uint256 const fixQualityUpperBound = *getRegisteredFeature("fixQualityUpperBound");
|
||||
|
||||
} // ripple
|
||||
|
||||
Reference in New Issue
Block a user