This commit is contained in:
bthomee
2025-05-30 17:29:11 +00:00
parent eb4df582b3
commit ebe6bc13ab
1387 changed files with 62225 additions and 49123 deletions

View File

@@ -160,7 +160,7 @@ $(function() {
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno"> 87</span> };</div>
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno"> 88</span> </div>
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno"> 89</span> <span class="keyword">static</span> Output</div>
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"> 90</span> <a class="code hl_function" href="classripple_1_1path_1_1RippleCalc.html#a359d70f8c834cec541d4036f785372c9">rippleCalculate</a>(</div>
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"> 90</span> <a class="code hl_function" href="classripple_1_1path_1_1RippleCalc.html#acd78cd8714414d4ccf5abf384c8d8d01">rippleCalculate</a>(</div>
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno"> 91</span> <a class="code hl_class" href="classripple_1_1PaymentSandbox.html">PaymentSandbox</a>&amp; <a class="code hl_variable" href="classripple_1_1path_1_1RippleCalc.html#a0275cba5eec83b3b526f20241c235701">view</a>,</div>
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"> 92</span> </div>
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno"> 93</span> <span class="comment">// Compute paths using this ledger entry set. Up to caller to actually</span></div>
@@ -184,23 +184,25 @@ $(function() {
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno"> 111</span> <span class="comment">// A set of paths that are included in the transaction that we&#39;ll</span></div>
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno"> 112</span> <span class="comment">// explore for liquidity.</span></div>
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno"> 113</span> <a class="code hl_class" href="classripple_1_1STPathSet.html">STPathSet</a> <span class="keyword">const</span>&amp; spsPaths,</div>
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno"> 114</span> <a class="code hl_class" href="classripple_1_1Logs.html">Logs</a>&amp; l,</div>
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno"> 115</span> Input <span class="keyword">const</span>* <span class="keyword">const</span> pInputs = <span class="keyword">nullptr</span>);</div>
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno"> 116</span> </div>
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno"> 117</span> <span class="comment">// The view we are currently working on</span></div>
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno"><a class="line" href="classripple_1_1path_1_1RippleCalc.html#a0275cba5eec83b3b526f20241c235701"> 118</a></span> <a class="code hl_class" href="classripple_1_1PaymentSandbox.html">PaymentSandbox</a>&amp; <a class="code hl_variable" href="classripple_1_1path_1_1RippleCalc.html#a0275cba5eec83b3b526f20241c235701">view</a>;</div>
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno"> 119</span> </div>
<div class="line"><a id="l00120" name="l00120"></a><span class="lineno"> 120</span> <span class="comment">// If the transaction fails to meet some constraint, still need to delete</span></div>
<div class="line"><a id="l00121" name="l00121"></a><span class="lineno"> 121</span> <span class="comment">// unfunded offers in a deterministic order (hence the ordered container).</span></div>
<div class="line"><a id="l00122" name="l00122"></a><span class="lineno"> 122</span> <span class="comment">//</span></div>
<div class="line"><a id="l00123" name="l00123"></a><span class="lineno"> 123</span> <span class="comment">// Offers that were found unfunded.</span></div>
<div class="line"><a id="l00124" name="l00124"></a><span class="lineno"><a class="line" href="classripple_1_1path_1_1RippleCalc.html#a90eb3b341309d998b79e824689b37623"> 124</a></span> boost::container::flat_set&lt;uint256&gt; <a class="code hl_variable" href="classripple_1_1path_1_1RippleCalc.html#a90eb3b341309d998b79e824689b37623">permanentlyUnfundedOffers_</a>;</div>
<div class="line"><a id="l00125" name="l00125"></a><span class="lineno"> 125</span>};</div>
<div class="line"><a id="l00126" name="l00126"></a><span class="lineno"> 126</span> </div>
<div class="line"><a id="l00127" name="l00127"></a><span class="lineno"> 127</span>} <span class="comment">// namespace path</span></div>
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno"> 128</span>} <span class="comment">// namespace ripple</span></div>
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno"> 129</span> </div>
<div class="line"><a id="l00130" name="l00130"></a><span class="lineno"> 130</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno"> 114</span> </div>
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno"> 115</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional&lt;uint256&gt;</a> <span class="keyword">const</span>&amp; domainID,</div>
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno"> 116</span> <a class="code hl_class" href="classripple_1_1Logs.html">Logs</a>&amp; l,</div>
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno"> 117</span> Input <span class="keyword">const</span>* <span class="keyword">const</span> pInputs = <span class="keyword">nullptr</span>);</div>
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno"> 118</span> </div>
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno"> 119</span> <span class="comment">// The view we are currently working on</span></div>
<div class="line"><a id="l00120" name="l00120"></a><span class="lineno"><a class="line" href="classripple_1_1path_1_1RippleCalc.html#a0275cba5eec83b3b526f20241c235701"> 120</a></span> <a class="code hl_class" href="classripple_1_1PaymentSandbox.html">PaymentSandbox</a>&amp; <a class="code hl_variable" href="classripple_1_1path_1_1RippleCalc.html#a0275cba5eec83b3b526f20241c235701">view</a>;</div>
<div class="line"><a id="l00121" name="l00121"></a><span class="lineno"> 121</span> </div>
<div class="line"><a id="l00122" name="l00122"></a><span class="lineno"> 122</span> <span class="comment">// If the transaction fails to meet some constraint, still need to delete</span></div>
<div class="line"><a id="l00123" name="l00123"></a><span class="lineno"> 123</span> <span class="comment">// unfunded offers in a deterministic order (hence the ordered container).</span></div>
<div class="line"><a id="l00124" name="l00124"></a><span class="lineno"> 124</span> <span class="comment">//</span></div>
<div class="line"><a id="l00125" name="l00125"></a><span class="lineno"> 125</span> <span class="comment">// Offers that were found unfunded.</span></div>
<div class="line"><a id="l00126" name="l00126"></a><span class="lineno"><a class="line" href="classripple_1_1path_1_1RippleCalc.html#a90eb3b341309d998b79e824689b37623"> 126</a></span> boost::container::flat_set&lt;uint256&gt; <a class="code hl_variable" href="classripple_1_1path_1_1RippleCalc.html#a90eb3b341309d998b79e824689b37623">permanentlyUnfundedOffers_</a>;</div>
<div class="line"><a id="l00127" name="l00127"></a><span class="lineno"> 127</span>};</div>
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno"> 128</span> </div>
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno"> 129</span>} <span class="comment">// namespace path</span></div>
<div class="line"><a id="l00130" name="l00130"></a><span class="lineno"> 130</span>} <span class="comment">// namespace ripple</span></div>
<div class="line"><a id="l00131" name="l00131"></a><span class="lineno"> 131</span> </div>
<div class="line"><a id="l00132" name="l00132"></a><span class="lineno"> 132</span><span class="preprocessor">#endif</span></div>
<div class="ttc" id="aclassripple_1_1Logs_html"><div class="ttname"><a href="classripple_1_1Logs.html">ripple::Logs</a></div><div class="ttdoc">Manages partitions for logging.</div><div class="ttdef"><b>Definition:</b> <a href="Log_8h_source.html#l00050">Log.h:51</a></div></div>
<div class="ttc" id="aclassripple_1_1PaymentSandbox_html"><div class="ttname"><a href="classripple_1_1PaymentSandbox.html">ripple::PaymentSandbox</a></div><div class="ttdoc">A wrapper which makes credits unavailable to balances.</div><div class="ttdef"><b>Definition:</b> <a href="PaymentSandbox_8h_source.html#l00114">PaymentSandbox.h:115</a></div></div>
<div class="ttc" id="aclassripple_1_1STAmount_html"><div class="ttname"><a href="classripple_1_1STAmount.html">ripple::STAmount</a></div><div class="ttdef"><b>Definition:</b> <a href="STAmount_8h_source.html#l00049">STAmount.h:50</a></div></div>
@@ -208,11 +210,12 @@ $(function() {
<div class="ttc" id="aclassripple_1_1TERSubset_html"><div class="ttname"><a href="classripple_1_1TERSubset.html">ripple::TERSubset&lt; CanCvtToTER &gt;</a></div></div>
<div class="ttc" id="aclassripple_1_1base__uint_html"><div class="ttname"><a href="classripple_1_1base__uint.html">ripple::base_uint&lt; 160, detail::AccountIDTag &gt;</a></div></div>
<div class="ttc" id="aclassripple_1_1path_1_1RippleCalc_html"><div class="ttname"><a href="classripple_1_1path_1_1RippleCalc.html">ripple::path::RippleCalc</a></div><div class="ttdoc">RippleCalc calculates the quality of a payment path.</div><div class="ttdef"><b>Definition:</b> <a href="RippleCalc_8h_source.html#l00044">RippleCalc.h:45</a></div></div>
<div class="ttc" id="aclassripple_1_1path_1_1RippleCalc_html_a0275cba5eec83b3b526f20241c235701"><div class="ttname"><a href="classripple_1_1path_1_1RippleCalc.html#a0275cba5eec83b3b526f20241c235701">ripple::path::RippleCalc::view</a></div><div class="ttdeci">PaymentSandbox &amp; view</div><div class="ttdef"><b>Definition:</b> <a href="RippleCalc_8h_source.html#l00118">RippleCalc.h:118</a></div></div>
<div class="ttc" id="aclassripple_1_1path_1_1RippleCalc_html_a359d70f8c834cec541d4036f785372c9"><div class="ttname"><a href="classripple_1_1path_1_1RippleCalc.html#a359d70f8c834cec541d4036f785372c9">ripple::path::RippleCalc::rippleCalculate</a></div><div class="ttdeci">static Output rippleCalculate(PaymentSandbox &amp;view, STAmount const &amp;saMaxAmountReq, STAmount const &amp;saDstAmountReq, AccountID const &amp;uDstAccountID, AccountID const &amp;uSrcAccountID, STPathSet const &amp;spsPaths, Logs &amp;l, Input const *const pInputs=nullptr)</div><div class="ttdef"><b>Definition:</b> <a href="RippleCalc_8cpp_source.html#l00032">RippleCalc.cpp:32</a></div></div>
<div class="ttc" id="aclassripple_1_1path_1_1RippleCalc_html_a90eb3b341309d998b79e824689b37623"><div class="ttname"><a href="classripple_1_1path_1_1RippleCalc.html#a90eb3b341309d998b79e824689b37623">ripple::path::RippleCalc::permanentlyUnfundedOffers_</a></div><div class="ttdeci">boost::container::flat_set&lt; uint256 &gt; permanentlyUnfundedOffers_</div><div class="ttdef"><b>Definition:</b> <a href="RippleCalc_8h_source.html#l00124">RippleCalc.h:124</a></div></div>
<div class="ttc" id="aclassripple_1_1path_1_1RippleCalc_html_a0275cba5eec83b3b526f20241c235701"><div class="ttname"><a href="classripple_1_1path_1_1RippleCalc.html#a0275cba5eec83b3b526f20241c235701">ripple::path::RippleCalc::view</a></div><div class="ttdeci">PaymentSandbox &amp; view</div><div class="ttdef"><b>Definition:</b> <a href="RippleCalc_8h_source.html#l00120">RippleCalc.h:120</a></div></div>
<div class="ttc" id="aclassripple_1_1path_1_1RippleCalc_html_a90eb3b341309d998b79e824689b37623"><div class="ttname"><a href="classripple_1_1path_1_1RippleCalc.html#a90eb3b341309d998b79e824689b37623">ripple::path::RippleCalc::permanentlyUnfundedOffers_</a></div><div class="ttdeci">boost::container::flat_set&lt; uint256 &gt; permanentlyUnfundedOffers_</div><div class="ttdef"><b>Definition:</b> <a href="RippleCalc_8h_source.html#l00126">RippleCalc.h:126</a></div></div>
<div class="ttc" id="aclassripple_1_1path_1_1RippleCalc_html_acd78cd8714414d4ccf5abf384c8d8d01"><div class="ttname"><a href="classripple_1_1path_1_1RippleCalc.html#acd78cd8714414d4ccf5abf384c8d8d01">ripple::path::RippleCalc::rippleCalculate</a></div><div class="ttdeci">static Output rippleCalculate(PaymentSandbox &amp;view, STAmount const &amp;saMaxAmountReq, STAmount const &amp;saDstAmountReq, AccountID const &amp;uDstAccountID, AccountID const &amp;uSrcAccountID, STPathSet const &amp;spsPaths, std::optional&lt; uint256 &gt; const &amp;domainID, Logs &amp;l, Input const *const pInputs=nullptr)</div><div class="ttdef"><b>Definition:</b> <a href="RippleCalc_8cpp_source.html#l00032">RippleCalc.cpp:32</a></div></div>
<div class="ttc" id="anamespaceripple_html"><div class="ttname"><a href="namespaceripple.html">ripple</a></div><div class="ttdoc">Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.</div><div class="ttdef"><b>Definition:</b> <a href="algorithm_8h_source.html#l00026">algorithm.h:26</a></div></div>
<div class="ttc" id="anamespaceripple_html_afe21c8454670d46fb93751a5edffed46a1dad6e2d630423dd67f4a540305f8b3c"><div class="ttname"><a href="namespaceripple.html#afe21c8454670d46fb93751a5edffed46a1dad6e2d630423dd67f4a540305f8b3c">ripple::temUNKNOWN</a></div><div class="ttdeci">@ temUNKNOWN</div><div class="ttdef"><b>Definition:</b> <a href="TER_8h_source.html#l00124">TER.h:124</a></div></div>
<div class="ttc" id="aoptional_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional</a></div></div>
<div class="ttc" id="astructripple_1_1path_1_1RippleCalc_1_1Input_html"><div class="ttname"><a href="structripple_1_1path_1_1RippleCalc_1_1Input.html">ripple::path::RippleCalc::Input</a></div><div class="ttdef"><b>Definition:</b> <a href="RippleCalc_8h_source.html#l00047">RippleCalc.h:48</a></div></div>
<div class="ttc" id="astructripple_1_1path_1_1RippleCalc_1_1Input_html_a5913b8a574634a704a8359529c5deff9"><div class="ttname"><a href="structripple_1_1path_1_1RippleCalc_1_1Input.html#a5913b8a574634a704a8359529c5deff9">ripple::path::RippleCalc::Input::defaultPathsAllowed</a></div><div class="ttdeci">bool defaultPathsAllowed</div><div class="ttdef"><b>Definition:</b> <a href="RippleCalc_8h_source.html#l00052">RippleCalc.h:52</a></div></div>
<div class="ttc" id="astructripple_1_1path_1_1RippleCalc_1_1Input_html_a6f79984cb663abdbeb7723f9a8d27895"><div class="ttname"><a href="structripple_1_1path_1_1RippleCalc_1_1Input.html#a6f79984cb663abdbeb7723f9a8d27895">ripple::path::RippleCalc::Input::partialPaymentAllowed</a></div><div class="ttdeci">bool partialPaymentAllowed</div><div class="ttdef"><b>Definition:</b> <a href="RippleCalc_8h_source.html#l00051">RippleCalc.h:51</a></div></div>