This commit is contained in:
bthomee
2025-11-12 05:26:48 -08:00
parent 35dde1521b
commit da1ee02d0b
12 changed files with 13 additions and 13 deletions

View File

@@ -118,7 +118,7 @@ $(document).ready(function() { init_codefold(0); });
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span> <span class="comment">// &lt;key&gt; &#39;=&#39; &lt;value&gt;</span></div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span> <span class="keyword">static</span> boost::regex <span class="keyword">const</span> re1(</div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span> <span class="stringliteral">&quot;^&quot;</span> <span class="comment">// start of line</span></div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span> <span class="stringliteral">&quot;(?:\\s*)&quot;</span> <span class="comment">// whitespace (optonal)</span></div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span> <span class="stringliteral">&quot;(?:\\s*)&quot;</span> <span class="comment">// whitespace (optional)</span></div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span> <span class="stringliteral">&quot;([a-zA-Z][_a-zA-Z0-9]*)&quot;</span> <span class="comment">// &lt;key&gt;</span></div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span> <span class="stringliteral">&quot;(?:\\s*)&quot;</span> <span class="comment">// whitespace (optional)</span></div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span> <span class="stringliteral">&quot;(?:=)&quot;</span> <span class="comment">// &#39;=&#39;</span></div>

View File

@@ -6965,7 +6965,7 @@ $(document).ready(function() { init_codefold(0); });
<div class="line"><a id="l06808" name="l06808"></a><span class="lineno"> 6808</span> mintAndCreateSellOffer(env, alice, XRP(0));</div>
<div class="line"><a id="l06809" name="l06809"></a><span class="lineno"> 6809</span> </div>
<div class="line"><a id="l06810" name="l06810"></a><span class="lineno"> 6810</span> <span class="comment">// Bob can accept the offer because the new NFT is stored in</span></div>
<div class="line"><a id="l06811" name="l06811"></a><span class="lineno"> 6811</span> <span class="comment">// an existing NFTokenPage so no new reserve is requried</span></div>
<div class="line"><a id="l06811" name="l06811"></a><span class="lineno"> 6811</span> <span class="comment">// an existing NFTokenPage so no new reserve is required</span></div>
<div class="line"><a id="l06812" name="l06812"></a><span class="lineno"> 6812</span> env(token::acceptSellOffer(bob, sellOfferIndex));</div>
<div class="line"><a id="l06813" name="l06813"></a><span class="lineno"> 6813</span> env.<a class="code hl_function" href="classripple_1_1test_1_1jtx_1_1Env.html#a69095691c9bcfab1f3d69c645f2dbe33">close</a>();</div>
<div class="line"><a id="l06814" name="l06814"></a><span class="lineno"> 6814</span> }</div>

View File

@@ -108,7 +108,7 @@ $(document).ready(function() { init_codefold(0); });
<div class="foldopen" id="foldopen00022" data-start="{" data-end="}">
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1NetworkOPs__test.html#a040ec9c6519aef6b9afd58bc5df08bec"> 22</a></span> <a class="code hl_function" href="classripple_1_1test_1_1NetworkOPs__test.html#a040ec9c6519aef6b9afd58bc5df08bec">testAllBadHeldTransactions</a>()</div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span> {</div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span> <span class="comment">// All trasactions are already marked as SF_BAD, and we should be able</span></div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span> <span class="comment">// All transactions are already marked as SF_BAD, and we should be able</span></div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span> <span class="comment">// to handle the case properly without an assertion failure</span></div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span> <a class="code hl_variable" href="classbeast_1_1unit__test_1_1suite.html#aaa1237d9b85c69d35fe86645cee094b5">testcase</a>(<span class="stringliteral">&quot;No valid transactions in batch&quot;</span>);</div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span> </div>

View File

@@ -345,7 +345,7 @@ $(document).ready(function() { init_codefold(0); });
<div class="line"><a id="l00252" name="l00252"></a><span class="lineno"> 252</span> <span class="keyword">auto</span> checkBalance = [&amp;env]() {</div>
<div class="line"><a id="l00253" name="l00253"></a><span class="lineno"> 253</span> <span class="comment">// this is endpoint drop prevention. Non admin ports will drop</span></div>
<div class="line"><a id="l00254" name="l00254"></a><span class="lineno"> 254</span> <span class="comment">// requests if they are coming too fast, so we manipulate the</span></div>
<div class="line"><a id="l00255" name="l00255"></a><span class="lineno"> 255</span> <span class="comment">// resource manager here to reset the enpoint balance (for</span></div>
<div class="line"><a id="l00255" name="l00255"></a><span class="lineno"> 255</span> <span class="comment">// resource manager here to reset the endpoint balance (for</span></div>
<div class="line"><a id="l00256" name="l00256"></a><span class="lineno"> 256</span> <span class="comment">// localhost) if we get too close to the drop limit. It would</span></div>
<div class="line"><a id="l00257" name="l00257"></a><span class="lineno"> 257</span> <span class="comment">// be better if we could add this functionality to Env somehow</span></div>
<div class="line"><a id="l00258" name="l00258"></a><span class="lineno"> 258</span> <span class="comment">// or otherwise disable endpoint charging for certain test</span></div>

View File

@@ -2022,7 +2022,7 @@ $(document).ready(function() { init_codefold(0); });
<div class="line"><a id="l01889" name="l01889"></a><span class="lineno"> 1889</span> BEAST_EXPECT(<a class="code hl_function" href="structripple_1_1test_1_1PayChan__test.html#ae05b84ca1fdac1d85b38698c1c7832cb">channelAmount</a>(*env.<a class="code hl_function" href="classripple_1_1test_1_1jtx_1_1Env.html#a65bedb2e0babbd55343f721de9008a37">current</a>(), chan) == <a class="code hl_variable" href="namespaceripple_1_1test_1_1jtx.html#aea9cd3d4e6b5df2e62d53b34b605957e">XRP</a>(1000));</div>
<div class="line"><a id="l01890" name="l01890"></a><span class="lineno"> 1890</span> </div>
<div class="line"><a id="l01891" name="l01891"></a><span class="lineno"> 1891</span> rmAccount(env, alice, carol, <a class="code hl_enumvalue" href="namespaceripple.html#aa298e929e02f59c2b05a30ee8805b38caa7460a5fac26c1d8abef55b8c1129150">tecHAS_OBLIGATIONS</a>);</div>
<div class="line"><a id="l01892" name="l01892"></a><span class="lineno"> 1892</span> <span class="comment">// can only remove bob if the channel isn&#39;t in their owner direcotry</span></div>
<div class="line"><a id="l01892" name="l01892"></a><span class="lineno"> 1892</span> <span class="comment">// can only remove bob if the channel isn&#39;t in their owner directory</span></div>
<div class="line"><a id="l01893" name="l01893"></a><span class="lineno"> 1893</span> rmAccount(env, bob, carol, <a class="code hl_typedef" href="namespaceripple.html#adfb760bc3e4ccb79d5d4f6ecff2f1817">TER</a>(<a class="code hl_enumvalue" href="namespaceripple.html#aa298e929e02f59c2b05a30ee8805b38caa7460a5fac26c1d8abef55b8c1129150">tecHAS_OBLIGATIONS</a>));</div>
<div class="line"><a id="l01894" name="l01894"></a><span class="lineno"> 1894</span> </div>
<div class="line"><a id="l01895" name="l01895"></a><span class="lineno"> 1895</span> <span class="keyword">auto</span> <span class="keyword">const</span> feeDrops = env.<a class="code hl_function" href="classripple_1_1test_1_1jtx_1_1Env.html#a65bedb2e0babbd55343f721de9008a37">current</a>()-&gt;fees().base;</div>
@@ -2058,7 +2058,7 @@ $(document).ready(function() { init_codefold(0); });
<div class="line"><a id="l01925" name="l01925"></a><span class="lineno"> 1925</span> <span class="comment">// Owner closes, will close after settleDelay</span></div>
<div class="line"><a id="l01926" name="l01926"></a><span class="lineno"> 1926</span> env(<a class="code hl_function" href="namespaceripple_1_1test_1_1jtx_1_1paychan.html#a89cce4a1494cae4734479d88975dbd2c">claim</a>(alice, chan), <a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1txflags.html">txflags</a>(<a class="code hl_variable" href="namespaceripple.html#ac1c00e26dbebe035301fefc29b02f82b">tfClose</a>));</div>
<div class="line"><a id="l01927" name="l01927"></a><span class="lineno"> 1927</span> env.<a class="code hl_function" href="classripple_1_1test_1_1jtx_1_1Env.html#a69095691c9bcfab1f3d69c645f2dbe33">close</a>();</div>
<div class="line"><a id="l01928" name="l01928"></a><span class="lineno"> 1928</span> <span class="comment">// settle delay hasn&#39;t ellapsed. Channels should exist.</span></div>
<div class="line"><a id="l01928" name="l01928"></a><span class="lineno"> 1928</span> <span class="comment">// settle delay hasn&#39;t elapsed. Channels should exist.</span></div>
<div class="line"><a id="l01929" name="l01929"></a><span class="lineno"> 1929</span> BEAST_EXPECT(<a class="code hl_function" href="namespaceripple_1_1test_1_1jtx_1_1paychan.html#a06f27c7124c8e76c4068af61623b06ec">channelExists</a>(*env.<a class="code hl_function" href="classripple_1_1test_1_1jtx_1_1Env.html#a65bedb2e0babbd55343f721de9008a37">current</a>(), chan));</div>
<div class="line"><a id="l01930" name="l01930"></a><span class="lineno"> 1930</span> <span class="keyword">auto</span> <span class="keyword">const</span> closeTime = env.<a class="code hl_function" href="classripple_1_1test_1_1jtx_1_1Env.html#a65bedb2e0babbd55343f721de9008a37">current</a>()-&gt;info().parentCloseTime;</div>
<div class="line"><a id="l01931" name="l01931"></a><span class="lineno"> 1931</span> <span class="keyword">auto</span> <span class="keyword">const</span> minExpiration = closeTime + settleDelay;</div>

View File

@@ -164,7 +164,7 @@ $(document).ready(function() { init_codefold(0); });
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"> 81</span> <span class="keywordflow">case</span> 3:</div>
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"> 82</span> <span class="keywordflow">return</span> <a class="code hl_enumvalue" href="namespaceripple.html#a57d7e7b27df7e719fdf5569f96be60a3ac9d2b0df1bd24ef0d09db1040dceac6b">hotUNKNOWN</a>;</div>
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"> 83</span> }</div>
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"> 84</span> <span class="comment">// will never happen, but make static analysys tool happy.</span></div>
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"> 84</span> <span class="comment">// will never happen, but make static analysis tool happy.</span></div>
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno"> 85</span> <span class="keywordflow">return</span> <a class="code hl_enumvalue" href="namespaceripple.html#a57d7e7b27df7e719fdf5569f96be60a3ac9d2b0df1bd24ef0d09db1040dceac6b">hotUNKNOWN</a>;</div>
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno"> 86</span> }();</div>
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno"> 87</span> </div>

View File

@@ -123,7 +123,7 @@ Private Attributes</h2></td></tr>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><div class="compoundTemplParams">template&lt;class... Cs&gt;<br />
class ripple::test::csf::Collectors&lt; Cs &gt;</div><p>Group of collectors. </p>
<p>Presents a group of collectors as a single collector which process an event by calling each collector sequentially. This is analagous to <a class="el" href="classripple_1_1test_1_1csf_1_1CollectorRefs.html" title="A container of CollectorRefs.">CollectorRefs</a> in <a class="el" href="CollectorRef_8h_source.html">CollectorRef.h</a>, but does <em>not</em> erase the type information of the combined collectors. </p>
<p>Presents a group of collectors as a single collector which process an event by calling each collector sequentially. This is analogous to <a class="el" href="classripple_1_1test_1_1csf_1_1CollectorRefs.html" title="A container of CollectorRefs.">CollectorRefs</a> in <a class="el" href="CollectorRef_8h_source.html">CollectorRef.h</a>, but does <em>not</em> erase the type information of the combined collectors. </p>
<p class="definition">Definition at line <a class="el" href="collectors_8h_source.html#l00036">36</a> of file <a class="el" href="collectors_8h_source.html">collectors.h</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>

View File

@@ -201,7 +201,7 @@ Friends</h2></td></tr>
Ledger 1 : {1,4,5}
Ledger 2 : {1,2,4,5,10}
....
</pre><p> Ledgers are immutable value types. All ledgers with the same sequence number, transactions, close time, etc. will have the same ledger ID. The <a class="el" href="classripple_1_1test_1_1csf_1_1LedgerOracle.html" title="Oracle maintaining unique ledgers for a simulation.">LedgerOracle</a> class below manges ID assignments for a simulation and is the only way to close and create a new ledger. Since the parent ledger ID is part of type, this also means ledgers with distinct histories will have distinct ids, even if they have the same set of transactions, sequence number and close time. </p>
</pre><p> Ledgers are immutable value types. All ledgers with the same sequence number, transactions, close time, etc. will have the same ledger ID. The <a class="el" href="classripple_1_1test_1_1csf_1_1LedgerOracle.html" title="Oracle maintaining unique ledgers for a simulation.">LedgerOracle</a> class below manages ID assignments for a simulation and is the only way to close and create a new ledger. Since the parent ledger ID is part of type, this also means ledgers with distinct histories will have distinct ids, even if they have the same set of transactions, sequence number and close time. </p>
<p class="definition">Definition at line <a class="el" href="ledgers_8h_source.html#l00044">44</a> of file <a class="el" href="ledgers_8h_source.html">ledgers.h</a>.</p>
</div><h2 class="groupheader">Member Typedef Documentation</h2>

View File

@@ -96,7 +96,7 @@ $(document).ready(function() { init_codefold(0); });
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span><span class="keyword">namespace </span>csf {</div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span> </div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span><span class="comment">// Events are emitted by peers at a variety of points during the simulation.</span></div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span><span class="comment">// Each event is emitted by a particlar peer at a particular time. Collectors</span></div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span><span class="comment">// Each event is emitted by a particular peer at a particular time. Collectors</span></div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span><span class="comment">// process these events, perhaps calculating statistics or storing events to</span></div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span><span class="comment">// a log for post-processing.</span></div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span><span class="comment">//</span></div>

View File

@@ -337,7 +337,7 @@ $(document).ready(function() { init_codefold(0); });
<div class="line"><a id="l00235" name="l00235"></a><span class="lineno"> 235</span> <span class="comment">// &lt;key&gt; &#39;=&#39; &lt;value&gt;</span></div>
<div class="line"><a id="l00236" name="l00236"></a><span class="lineno"> 236</span> <span class="keyword">static</span> boost::regex <span class="keyword">const</span> re1(</div>
<div class="line"><a id="l00237" name="l00237"></a><span class="lineno"> 237</span> <span class="stringliteral">&quot;^&quot;</span> <span class="comment">// start of line</span></div>
<div class="line"><a id="l00238" name="l00238"></a><span class="lineno"> 238</span> <span class="stringliteral">&quot;(?:\\s*)&quot;</span> <span class="comment">// whitespace (optonal)</span></div>
<div class="line"><a id="l00238" name="l00238"></a><span class="lineno"> 238</span> <span class="stringliteral">&quot;(?:\\s*)&quot;</span> <span class="comment">// whitespace (optional)</span></div>
<div class="line"><a id="l00239" name="l00239"></a><span class="lineno"> 239</span> <span class="stringliteral">&quot;([a-zA-Z][_a-zA-Z0-9]*)&quot;</span> <span class="comment">// &lt;key&gt;</span></div>
<div class="line"><a id="l00240" name="l00240"></a><span class="lineno"> 240</span> <span class="stringliteral">&quot;(?:\\s*)&quot;</span> <span class="comment">// whitespace (optional)</span></div>
<div class="line"><a id="l00241" name="l00241"></a><span class="lineno"> 241</span> <span class="stringliteral">&quot;(?:=)&quot;</span> <span class="comment">// &#39;=&#39;</span></div>

View File

@@ -460,7 +460,7 @@ $(document).ready(function() { init_codefold(0); });
<div class="line"><a id="l00404" name="l00404"></a><span class="lineno"> 404</span> {</div>
<div class="line"><a id="l00405" name="l00405"></a><span class="lineno"> 405</span> minDuration = <a class="code hl_functionRef" href="http://en.cppreference.com/w/cpp/algorithm/min.html">std::min</a>(minDuration, link.data.delay);</div>
<div class="line"><a id="l00406" name="l00406"></a><span class="lineno"> 406</span> </div>
<div class="line"><a id="l00407" name="l00407"></a><span class="lineno"> 407</span> <span class="comment">// Send a messsage to neighbors to find the ledger</span></div>
<div class="line"><a id="l00407" name="l00407"></a><span class="lineno"> 407</span> <span class="comment">// Send a message to neighbors to find the ledger</span></div>
<div class="line"><a id="l00408" name="l00408"></a><span class="lineno"> 408</span> <a class="code hl_variable" href="structripple_1_1test_1_1csf_1_1Peer.html#a359fccddba11f7f638069f24b60fe312">net</a>.send(</div>
<div class="line"><a id="l00409" name="l00409"></a><span class="lineno"> 409</span> <span class="keyword">this</span>, link.target, [to = link.target, from = <span class="keyword">this</span>, ledgerID]() {</div>
<div class="line"><a id="l00410" name="l00410"></a><span class="lineno"> 410</span> if (auto it = to-&gt;ledgers.find(ledgerID);</div>

View File

@@ -352,7 +352,7 @@ $(document).ready(function() { init_codefold(0); });
<div class="line"><a id="l00245" name="l00245"></a><span class="lineno"> 245</span> <span class="comment">// (20+0.25*(60-20)-5=25), queue the rest, skip counts towards relayed</span></div>
<div class="line"><a id="l00246" name="l00246"></a><span class="lineno"> 246</span> <span class="comment">// (60-25-5=30)</span></div>
<div class="line"><a id="l00247" name="l00247"></a><span class="lineno"> 247</span> <a class="code hl_function" href="classripple_1_1test_1_1tx__reduce__relay__test.html#a051d4e26e1050b71288e4239b371c055">testRelay</a>(<span class="stringliteral">&quot;skip&quot;</span>, <span class="keyword">true</span>, 60, 0, 20, 25, 25, 30, skip);</div>
<div class="line"><a id="l00248" name="l00248"></a><span class="lineno"> 248</span> <span class="comment">// relay to minPeers + disabled + 25% of (nPeers - minPeers - disalbed)</span></div>
<div class="line"><a id="l00248" name="l00248"></a><span class="lineno"> 248</span> <span class="comment">// relay to minPeers + disabled + 25% of (nPeers - minPeers - disabled)</span></div>
<div class="line"><a id="l00249" name="l00249"></a><span class="lineno"> 249</span> <span class="comment">// (20+10+0.25*(70-20-10)=40), queue the rest (30)</span></div>
<div class="line"><a id="l00250" name="l00250"></a><span class="lineno"> 250</span> <a class="code hl_function" href="classripple_1_1test_1_1tx__reduce__relay__test.html#a051d4e26e1050b71288e4239b371c055">testRelay</a>(<span class="stringliteral">&quot;disabled&quot;</span>, <span class="keyword">true</span>, 70, 10, 20, 25, 40, 30);</div>
<div class="line"><a id="l00251" name="l00251"></a><span class="lineno"> 251</span> <span class="comment">// relay to minPeers + disabled-not-in-skip + 25% of (nPeers - minPeers</span></div>