This commit is contained in:
bthomee
2025-03-12 22:37:33 +00:00
parent 863da5c9e1
commit 7f0acfcddb
1732 changed files with 298086 additions and 297371 deletions

View File

@@ -96,76 +96,78 @@ $(function() {
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span><span class="comment">//==============================================================================</span></div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span> </div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span><span class="preprocessor">#include &lt;test/jtx/Env.h&gt;</span></div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span><span class="preprocessor">#include &lt;xrpld/app/tx/apply.h&gt;</span></div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span><span class="preprocessor">#include &lt;xrpl/basics/StringUtilities.h&gt;</span></div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span><span class="preprocessor">#include &lt;xrpl/protocol/Feature.h&gt;</span></div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span> </div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespaceripple.html">ripple</a> {</div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span> </div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span><span class="preprocessor">#include &lt;xrpld/app/tx/apply.h&gt;</span></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="preprocessor">#include &lt;xrpl/basics/StringUtilities.h&gt;</span></div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span><span class="preprocessor">#include &lt;xrpl/protocol/Feature.h&gt;</span></div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span> </div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"><a class="line" href="classripple_1_1Apply__test.html"> 27</a></span><span class="keyword">class </span><a class="code hl_class" href="classripple_1_1Apply__test.html">Apply_test</a> : <span class="keyword">public</span> <a class="code hl_class" href="classbeast_1_1unit__test_1_1suite.html">beast::unit_test::suite</a></div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span>{</div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span><span class="keyword">public</span>:</div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span> <span class="keywordtype">void</span></div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"><a class="line" href="classripple_1_1Apply__test.html#ade3bba79067eddc26d08b2d1498961ec"> 31</a></span> <a class="code hl_function" href="classripple_1_1Apply__test.html#ade3bba79067eddc26d08b2d1498961ec">run</a>()<span class="keyword"> override</span></div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span><span class="keyword"> </span>{</div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span> <a class="code hl_variable" href="classbeast_1_1unit__test_1_1suite.html#aaa1237d9b85c69d35fe86645cee094b5">testcase</a>(<span class="stringliteral">&quot;Require Fully Canonicial Signature&quot;</span>);</div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span> <a class="code hl_function" href="classripple_1_1Apply__test.html#a28acd94bb4a53523c65922c3825679b3">testFullyCanonicalSigs</a>();</div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span> }</div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span> </div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span> <span class="keywordtype">void</span></div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"><a class="line" href="classripple_1_1Apply__test.html#a28acd94bb4a53523c65922c3825679b3"> 38</a></span> <a class="code hl_function" href="classripple_1_1Apply__test.html#a28acd94bb4a53523c65922c3825679b3">testFullyCanonicalSigs</a>()</div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span> {</div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span> <span class="comment">// Construct a payments w/out a fully-canonical tx</span></div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span> <span class="keyword">const</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> non_fully_canonical_tx =</div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"> 42</span> <span class="stringliteral">&quot;12000022000000002400000001201B00497D9C6140000000000F6950684000000&quot;</span></div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span> <span class="stringliteral">&quot;00000000C732103767C7B2C13AD90050A4263745E4BAB2B975417FA22E87780E1&quot;</span></div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span> <span class="stringliteral">&quot;506DDAF21139BE74483046022100E95670988A34C4DB0FA73A8BFD6383872AF43&quot;</span></div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"> 45</span> <span class="stringliteral">&quot;8C147A62BC8387406298C3EADC1022100A7DC80508ED5A4750705C702A81CBF9D&quot;</span></div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"> 46</span> <span class="stringliteral">&quot;2C2DC3AFEDBED37BBCCD97BC8C40E08F8114E25A26437D923EEF4D6D815DF9336&quot;</span></div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span> <span class="stringliteral">&quot;8B62E6440848314BB85996936E4F595287774684DC2AC6266024BEF&quot;</span>;</div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"> 48</span> </div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span> <span class="keyword">auto</span> ret = <a class="code hl_function" href="namespaceripple.html#a2127aa882d06ad6aaae928d2e80fb395">strUnHex</a>(non_fully_canonical_tx);</div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"> 50</span> <a class="code hl_class" href="classripple_1_1SerialIter.html">SerialIter</a> sitTrans(<a class="code hl_function" href="namespaceripple.html#a93f2333b362ee67694b78f55eadf7805">makeSlice</a>(*ret));</div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span> <a class="code hl_class" href="classripple_1_1STTx.html">STTx</a> <span class="keyword">const</span> tx = *std::make_shared&lt;STTx const&gt;(<a class="code hl_functionRef" href="http://en.cppreference.com/w/cpp/utility/functional/ref.html">std::ref</a>(sitTrans));</div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span> </div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span> {</div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span> <a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1Env.html">test::jtx::Env</a> no_fully_canonical(</div>
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span> *<span class="keyword">this</span>,</div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span> <a class="code hl_function" href="namespaceripple_1_1test_1_1jtx.html#af5441d84d5977d52246c5226313560d4">test::jtx::supported_amendments</a>() -</div>
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"> 57</span> featureRequireFullyCanonicalSig);</div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"> 58</span> </div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"> 59</span> <a class="code hl_enumeration" href="namespaceripple.html#abcad59b0151763334cc398263373bcdd">Validity</a> <a class="code hl_function" href="namespaceripple_1_1credentials.html#abd2ed437891b9bd542d2afc3f5f4bc58">valid</a> = <a class="code hl_function" href="namespaceripple.html#adb47f5675e01882e14c2cf9cc5700648">checkValidity</a>(</div>
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"> 60</span> no_fully_canonical.<a class="code hl_function" href="classripple_1_1test_1_1jtx_1_1Env.html#acd48f8ab02c37b1a30cedf4dec7cc96c">app</a>().<a class="code hl_function" href="classripple_1_1Application.html#ad60542d0ed6bf805110c4c85ddf63c3c">getHashRouter</a>(),</div>
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"> 61</span> tx,</div>
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</span> no_fully_canonical.<a class="code hl_function" href="classripple_1_1test_1_1jtx_1_1Env.html#a65bedb2e0babbd55343f721de9008a37">current</a>()-&gt;rules(),</div>
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"> 63</span> no_fully_canonical.<a class="code hl_function" href="classripple_1_1test_1_1jtx_1_1Env.html#acd48f8ab02c37b1a30cedf4dec7cc96c">app</a>().<a class="code hl_function" href="classripple_1_1Application.html#a0c48dd5bcaef14e30e9ef5b96b0daa39">config</a>())</div>
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"> 64</span> .first;</div>
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"> 65</span> </div>
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"> 66</span> <span class="keywordflow">if</span> (<a class="code hl_function" href="namespaceripple_1_1credentials.html#abd2ed437891b9bd542d2afc3f5f4bc58">valid</a> != <a class="code hl_enumvalue" href="namespaceripple.html#abcad59b0151763334cc398263373bcdda3ac705f2acd51a4613f9188c05c91d0d">Validity::Valid</a>)</div>
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"> 67</span> <a class="code hl_function" href="classbeast_1_1unit__test_1_1suite.html#af5ea30f883ad3a2a841af60a9a82c29c">fail</a>(<span class="stringliteral">&quot;Non-Fully canoncial signature was not permitted&quot;</span>);</div>
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"> 68</span> }</div>
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"> 69</span> </div>
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"> 70</span> {</div>
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"> 71</span> <a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1Env.html">test::jtx::Env</a> fully_canonical(</div>
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"> 72</span> *<span class="keyword">this</span>, <a class="code hl_function" href="namespaceripple_1_1test_1_1jtx.html#af5441d84d5977d52246c5226313560d4">test::jtx::supported_amendments</a>());</div>
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"> 73</span> </div>
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"> 74</span> <a class="code hl_enumeration" href="namespaceripple.html#abcad59b0151763334cc398263373bcdd">Validity</a> <a class="code hl_function" href="namespaceripple_1_1credentials.html#abd2ed437891b9bd542d2afc3f5f4bc58">valid</a> = <a class="code hl_function" href="namespaceripple.html#adb47f5675e01882e14c2cf9cc5700648">checkValidity</a>(</div>
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"> 75</span> fully_canonical.<a class="code hl_function" href="classripple_1_1test_1_1jtx_1_1Env.html#acd48f8ab02c37b1a30cedf4dec7cc96c">app</a>().<a class="code hl_function" href="classripple_1_1Application.html#ad60542d0ed6bf805110c4c85ddf63c3c">getHashRouter</a>(),</div>
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"> 76</span> tx,</div>
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"> 77</span> fully_canonical.<a class="code hl_function" href="classripple_1_1test_1_1jtx_1_1Env.html#a65bedb2e0babbd55343f721de9008a37">current</a>()-&gt;rules(),</div>
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno"> 78</span> fully_canonical.<a class="code hl_function" href="classripple_1_1test_1_1jtx_1_1Env.html#acd48f8ab02c37b1a30cedf4dec7cc96c">app</a>().<a class="code hl_function" href="classripple_1_1Application.html#a0c48dd5bcaef14e30e9ef5b96b0daa39">config</a>())</div>
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"> 79</span> .first;</div>
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"> 80</span> <span class="keywordflow">if</span> (<a class="code hl_function" href="namespaceripple_1_1credentials.html#abd2ed437891b9bd542d2afc3f5f4bc58">valid</a> == <a class="code hl_enumvalue" href="namespaceripple.html#abcad59b0151763334cc398263373bcdda3ac705f2acd51a4613f9188c05c91d0d">Validity::Valid</a>)</div>
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"> 81</span> <a class="code hl_function" href="classbeast_1_1unit__test_1_1suite.html#af5ea30f883ad3a2a841af60a9a82c29c">fail</a>(<span class="stringliteral">&quot;Non-Fully canoncial signature was permitted&quot;</span>);</div>
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"> 82</span> }</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> <a class="code hl_function" href="classbeast_1_1unit__test_1_1suite.html#a5c723fb774d3c25ba877c5b9ce681d6f">pass</a>();</div>
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno"> 85</span> }</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>
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno"><a class="line" href="namespaceripple.html#ae86bf5b713e5abd36976f0afeed0bb71"> 88</a></span>BEAST_DEFINE_TESTSUITE(Apply, app, <a class="code hl_namespace" href="namespaceripple.html">ripple</a>);</div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespaceripple.html">ripple</a> {</div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span> </div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"><a class="line" href="classripple_1_1Apply__test.html"> 29</a></span><span class="keyword">class </span><a class="code hl_class" href="classripple_1_1Apply__test.html">Apply_test</a> : <span class="keyword">public</span> <a class="code hl_class" href="classbeast_1_1unit__test_1_1suite.html">beast::unit_test::suite</a></div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span>{</div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span><span class="keyword">public</span>:</div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span> <span class="keywordtype">void</span></div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"><a class="line" href="classripple_1_1Apply__test.html#ade3bba79067eddc26d08b2d1498961ec"> 33</a></span> <a class="code hl_function" href="classripple_1_1Apply__test.html#ade3bba79067eddc26d08b2d1498961ec">run</a>()<span class="keyword"> override</span></div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span><span class="keyword"> </span>{</div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span> <a class="code hl_variable" href="classbeast_1_1unit__test_1_1suite.html#aaa1237d9b85c69d35fe86645cee094b5">testcase</a>(<span class="stringliteral">&quot;Require Fully Canonicial Signature&quot;</span>);</div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span> <a class="code hl_function" href="classripple_1_1Apply__test.html#a28acd94bb4a53523c65922c3825679b3">testFullyCanonicalSigs</a>();</div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span> }</div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"> 38</span> </div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span> <span class="keywordtype">void</span></div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"><a class="line" href="classripple_1_1Apply__test.html#a28acd94bb4a53523c65922c3825679b3"> 40</a></span> <a class="code hl_function" href="classripple_1_1Apply__test.html#a28acd94bb4a53523c65922c3825679b3">testFullyCanonicalSigs</a>()</div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span> {</div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"> 42</span> <span class="comment">// Construct a payments w/out a fully-canonical tx</span></div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span> <span class="keyword">const</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> non_fully_canonical_tx =</div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span> <span class="stringliteral">&quot;12000022000000002400000001201B00497D9C6140000000000F6950684000000&quot;</span></div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"> 45</span> <span class="stringliteral">&quot;00000000C732103767C7B2C13AD90050A4263745E4BAB2B975417FA22E87780E1&quot;</span></div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"> 46</span> <span class="stringliteral">&quot;506DDAF21139BE74483046022100E95670988A34C4DB0FA73A8BFD6383872AF43&quot;</span></div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span> <span class="stringliteral">&quot;8C147A62BC8387406298C3EADC1022100A7DC80508ED5A4750705C702A81CBF9D&quot;</span></div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"> 48</span> <span class="stringliteral">&quot;2C2DC3AFEDBED37BBCCD97BC8C40E08F8114E25A26437D923EEF4D6D815DF9336&quot;</span></div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span> <span class="stringliteral">&quot;8B62E6440848314BB85996936E4F595287774684DC2AC6266024BEF&quot;</span>;</div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"> 50</span> </div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span> <span class="keyword">auto</span> ret = <a class="code hl_function" href="namespaceripple.html#a2127aa882d06ad6aaae928d2e80fb395">strUnHex</a>(non_fully_canonical_tx);</div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span> <a class="code hl_class" href="classripple_1_1SerialIter.html">SerialIter</a> sitTrans(<a class="code hl_function" href="namespaceripple.html#a93f2333b362ee67694b78f55eadf7805">makeSlice</a>(*ret));</div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span> <a class="code hl_class" href="classripple_1_1STTx.html">STTx</a> <span class="keyword">const</span> tx = *std::make_shared&lt;STTx const&gt;(<a class="code hl_functionRef" href="http://en.cppreference.com/w/cpp/utility/functional/ref.html">std::ref</a>(sitTrans));</div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span> </div>
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span> {</div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span> <a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1Env.html">test::jtx::Env</a> no_fully_canonical(</div>
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"> 57</span> *<span class="keyword">this</span>,</div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"> 58</span> <a class="code hl_function" href="namespaceripple_1_1test_1_1jtx.html#af5441d84d5977d52246c5226313560d4">test::jtx::supported_amendments</a>() -</div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"> 59</span> featureRequireFullyCanonicalSig);</div>
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"> 60</span> </div>
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"> 61</span> <a class="code hl_enumeration" href="namespaceripple.html#abcad59b0151763334cc398263373bcdd">Validity</a> <a class="code hl_function" href="namespaceripple_1_1credentials.html#abd2ed437891b9bd542d2afc3f5f4bc58">valid</a> = <a class="code hl_function" href="namespaceripple.html#adb47f5675e01882e14c2cf9cc5700648">checkValidity</a>(</div>
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</span> no_fully_canonical.<a class="code hl_function" href="classripple_1_1test_1_1jtx_1_1Env.html#acd48f8ab02c37b1a30cedf4dec7cc96c">app</a>().<a class="code hl_function" href="classripple_1_1Application.html#ad60542d0ed6bf805110c4c85ddf63c3c">getHashRouter</a>(),</div>
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"> 63</span> tx,</div>
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"> 64</span> no_fully_canonical.<a class="code hl_function" href="classripple_1_1test_1_1jtx_1_1Env.html#a65bedb2e0babbd55343f721de9008a37">current</a>()-&gt;rules(),</div>
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"> 65</span> no_fully_canonical.<a class="code hl_function" href="classripple_1_1test_1_1jtx_1_1Env.html#acd48f8ab02c37b1a30cedf4dec7cc96c">app</a>().<a class="code hl_function" href="classripple_1_1Application.html#a0c48dd5bcaef14e30e9ef5b96b0daa39">config</a>())</div>
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"> 66</span> .first;</div>
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"> 67</span> </div>
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"> 68</span> <span class="keywordflow">if</span> (<a class="code hl_function" href="namespaceripple_1_1credentials.html#abd2ed437891b9bd542d2afc3f5f4bc58">valid</a> != <a class="code hl_enumvalue" href="namespaceripple.html#abcad59b0151763334cc398263373bcdda3ac705f2acd51a4613f9188c05c91d0d">Validity::Valid</a>)</div>
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"> 69</span> <a class="code hl_function" href="classbeast_1_1unit__test_1_1suite.html#af5ea30f883ad3a2a841af60a9a82c29c">fail</a>(<span class="stringliteral">&quot;Non-Fully canoncial signature was not permitted&quot;</span>);</div>
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"> 70</span> }</div>
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"> 71</span> </div>
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"> 72</span> {</div>
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"> 73</span> <a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1Env.html">test::jtx::Env</a> fully_canonical(</div>
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"> 74</span> *<span class="keyword">this</span>, <a class="code hl_function" href="namespaceripple_1_1test_1_1jtx.html#af5441d84d5977d52246c5226313560d4">test::jtx::supported_amendments</a>());</div>
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"> 75</span> </div>
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"> 76</span> <a class="code hl_enumeration" href="namespaceripple.html#abcad59b0151763334cc398263373bcdd">Validity</a> <a class="code hl_function" href="namespaceripple_1_1credentials.html#abd2ed437891b9bd542d2afc3f5f4bc58">valid</a> = <a class="code hl_function" href="namespaceripple.html#adb47f5675e01882e14c2cf9cc5700648">checkValidity</a>(</div>
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"> 77</span> fully_canonical.<a class="code hl_function" href="classripple_1_1test_1_1jtx_1_1Env.html#acd48f8ab02c37b1a30cedf4dec7cc96c">app</a>().<a class="code hl_function" href="classripple_1_1Application.html#ad60542d0ed6bf805110c4c85ddf63c3c">getHashRouter</a>(),</div>
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno"> 78</span> tx,</div>
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"> 79</span> fully_canonical.<a class="code hl_function" href="classripple_1_1test_1_1jtx_1_1Env.html#a65bedb2e0babbd55343f721de9008a37">current</a>()-&gt;rules(),</div>
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"> 80</span> fully_canonical.<a class="code hl_function" href="classripple_1_1test_1_1jtx_1_1Env.html#acd48f8ab02c37b1a30cedf4dec7cc96c">app</a>().<a class="code hl_function" href="classripple_1_1Application.html#a0c48dd5bcaef14e30e9ef5b96b0daa39">config</a>())</div>
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"> 81</span> .first;</div>
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"> 82</span> <span class="keywordflow">if</span> (<a class="code hl_function" href="namespaceripple_1_1credentials.html#abd2ed437891b9bd542d2afc3f5f4bc58">valid</a> == <a class="code hl_enumvalue" href="namespaceripple.html#abcad59b0151763334cc398263373bcdda3ac705f2acd51a4613f9188c05c91d0d">Validity::Valid</a>)</div>
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"> 83</span> <a class="code hl_function" href="classbeast_1_1unit__test_1_1suite.html#af5ea30f883ad3a2a841af60a9a82c29c">fail</a>(<span class="stringliteral">&quot;Non-Fully canoncial signature was permitted&quot;</span>);</div>
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"> 84</span> }</div>
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno"> 85</span> </div>
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno"> 86</span> <a class="code hl_function" href="classbeast_1_1unit__test_1_1suite.html#a5c723fb774d3c25ba877c5b9ce681d6f">pass</a>();</div>
<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> </div>
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"> 90</span>} <span class="comment">// namespace ripple</span></div>
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"><a class="line" href="namespaceripple.html#ae86bf5b713e5abd36976f0afeed0bb71"> 90</a></span>BEAST_DEFINE_TESTSUITE(Apply, app, <a class="code hl_namespace" href="namespaceripple.html">ripple</a>);</div>
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno"> 91</span> </div>
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"> 92</span>} <span class="comment">// namespace ripple</span></div>
<div class="ttc" id="abasic_string_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a></div></div>
<div class="ttc" id="aclassbeast_1_1unit__test_1_1suite_html"><div class="ttname"><a href="classbeast_1_1unit__test_1_1suite.html">beast::unit_test::suite</a></div><div class="ttdoc">A testsuite class.</div><div class="ttdef"><b>Definition:</b> <a href="suite_8h_source.html#l00054">suite.h:55</a></div></div>
<div class="ttc" id="aclassbeast_1_1unit__test_1_1suite_html_a5c723fb774d3c25ba877c5b9ce681d6f"><div class="ttname"><a href="classbeast_1_1unit__test_1_1suite.html#a5c723fb774d3c25ba877c5b9ce681d6f">beast::unit_test::suite::pass</a></div><div class="ttdeci">void pass()</div><div class="ttdoc">Record a successful test condition.</div><div class="ttdef"><b>Definition:</b> <a href="suite_8h_source.html#l00511">suite.h:511</a></div></div>
@@ -173,22 +175,22 @@ $(function() {
<div class="ttc" id="aclassbeast_1_1unit__test_1_1suite_html_af5ea30f883ad3a2a841af60a9a82c29c"><div class="ttname"><a href="classbeast_1_1unit__test_1_1suite.html#af5ea30f883ad3a2a841af60a9a82c29c">beast::unit_test::suite::fail</a></div><div class="ttdeci">void fail(String const &amp;reason, char const *file, int line)</div><div class="ttdoc">Record a failure.</div><div class="ttdef"><b>Definition:</b> <a href="suite_8h_source.html#l00533">suite.h:533</a></div></div>
<div class="ttc" id="aclassripple_1_1Application_html_a0c48dd5bcaef14e30e9ef5b96b0daa39"><div class="ttname"><a href="classripple_1_1Application.html#a0c48dd5bcaef14e30e9ef5b96b0daa39">ripple::Application::config</a></div><div class="ttdeci">virtual Config &amp; config()=0</div></div>
<div class="ttc" id="aclassripple_1_1Application_html_ad60542d0ed6bf805110c4c85ddf63c3c"><div class="ttname"><a href="classripple_1_1Application.html#ad60542d0ed6bf805110c4c85ddf63c3c">ripple::Application::getHashRouter</a></div><div class="ttdeci">virtual HashRouter &amp; getHashRouter()=0</div></div>
<div class="ttc" id="aclassripple_1_1Apply__test_html"><div class="ttname"><a href="classripple_1_1Apply__test.html">ripple::Apply_test</a></div><div class="ttdef"><b>Definition:</b> <a href="apply__test_8cpp_source.html#l00027">apply_test.cpp:28</a></div></div>
<div class="ttc" id="aclassripple_1_1Apply__test_html_a28acd94bb4a53523c65922c3825679b3"><div class="ttname"><a href="classripple_1_1Apply__test.html#a28acd94bb4a53523c65922c3825679b3">ripple::Apply_test::testFullyCanonicalSigs</a></div><div class="ttdeci">void testFullyCanonicalSigs()</div><div class="ttdef"><b>Definition:</b> <a href="apply__test_8cpp_source.html#l00038">apply_test.cpp:38</a></div></div>
<div class="ttc" id="aclassripple_1_1Apply__test_html_ade3bba79067eddc26d08b2d1498961ec"><div class="ttname"><a href="classripple_1_1Apply__test.html#ade3bba79067eddc26d08b2d1498961ec">ripple::Apply_test::run</a></div><div class="ttdeci">void run() override</div><div class="ttdoc">Runs the suite.</div><div class="ttdef"><b>Definition:</b> <a href="apply__test_8cpp_source.html#l00031">apply_test.cpp:31</a></div></div>
<div class="ttc" id="aclassripple_1_1Apply__test_html"><div class="ttname"><a href="classripple_1_1Apply__test.html">ripple::Apply_test</a></div><div class="ttdef"><b>Definition:</b> <a href="apply__test_8cpp_source.html#l00029">apply_test.cpp:30</a></div></div>
<div class="ttc" id="aclassripple_1_1Apply__test_html_a28acd94bb4a53523c65922c3825679b3"><div class="ttname"><a href="classripple_1_1Apply__test.html#a28acd94bb4a53523c65922c3825679b3">ripple::Apply_test::testFullyCanonicalSigs</a></div><div class="ttdeci">void testFullyCanonicalSigs()</div><div class="ttdef"><b>Definition:</b> <a href="apply__test_8cpp_source.html#l00040">apply_test.cpp:40</a></div></div>
<div class="ttc" id="aclassripple_1_1Apply__test_html_ade3bba79067eddc26d08b2d1498961ec"><div class="ttname"><a href="classripple_1_1Apply__test.html#ade3bba79067eddc26d08b2d1498961ec">ripple::Apply_test::run</a></div><div class="ttdeci">void run() override</div><div class="ttdoc">Runs the suite.</div><div class="ttdef"><b>Definition:</b> <a href="apply__test_8cpp_source.html#l00033">apply_test.cpp:33</a></div></div>
<div class="ttc" id="aclassripple_1_1STTx_html"><div class="ttname"><a href="classripple_1_1STTx.html">ripple::STTx</a></div><div class="ttdef"><b>Definition:</b> <a href="STTx_8h_source.html#l00047">STTx.h:48</a></div></div>
<div class="ttc" id="aclassripple_1_1SerialIter_html"><div class="ttname"><a href="classripple_1_1SerialIter.html">ripple::SerialIter</a></div><div class="ttdef"><b>Definition:</b> <a href="Serializer_8h_source.html#l00346">Serializer.h:347</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1jtx_1_1Env_html"><div class="ttname"><a href="classripple_1_1test_1_1jtx_1_1Env.html">ripple::test::jtx::Env</a></div><div class="ttdoc">A transaction testing environment.</div><div class="ttdef"><b>Definition:</b> <a href="Env_8h_source.html#l00117">Env.h:118</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1jtx_1_1Env_html_a65bedb2e0babbd55343f721de9008a37"><div class="ttname"><a href="classripple_1_1test_1_1jtx_1_1Env.html#a65bedb2e0babbd55343f721de9008a37">ripple::test::jtx::Env::current</a></div><div class="ttdeci">std::shared_ptr&lt; OpenView const &gt; current() const</div><div class="ttdoc">Returns the current ledger.</div><div class="ttdef"><b>Definition:</b> <a href="Env_8h_source.html#l00326">Env.h:326</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1jtx_1_1Env_html_acd48f8ab02c37b1a30cedf4dec7cc96c"><div class="ttname"><a href="classripple_1_1test_1_1jtx_1_1Env.html#acd48f8ab02c37b1a30cedf4dec7cc96c">ripple::test::jtx::Env::app</a></div><div class="ttdeci">Application &amp; app()</div><div class="ttdef"><b>Definition:</b> <a href="Env_8h_source.html#l00256">Env.h:256</a></div></div>
<div class="ttc" id="anamespaceripple_1_1credentials_html_abd2ed437891b9bd542d2afc3f5f4bc58"><div class="ttname"><a href="namespaceripple_1_1credentials.html#abd2ed437891b9bd542d2afc3f5f4bc58">ripple::credentials::valid</a></div><div class="ttdeci">TER valid(PreclaimContext const &amp;ctx, AccountID const &amp;src)</div><div class="ttdef"><b>Definition:</b> <a href="CredentialHelpers_8cpp_source.html#l00152">CredentialHelpers.cpp:152</a></div></div>
<div class="ttc" id="anamespaceripple_1_1test_1_1jtx_html_af5441d84d5977d52246c5226313560d4"><div class="ttname"><a href="namespaceripple_1_1test_1_1jtx.html#af5441d84d5977d52246c5226313560d4">ripple::test::jtx::supported_amendments</a></div><div class="ttdeci">FeatureBitset supported_amendments()</div><div class="ttdef"><b>Definition:</b> <a href="Env_8h_source.html#l00071">Env.h:71</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1jtx_1_1Env_html"><div class="ttname"><a href="classripple_1_1test_1_1jtx_1_1Env.html">ripple::test::jtx::Env</a></div><div class="ttdoc">A transaction testing environment.</div><div class="ttdef"><b>Definition:</b> <a href="Env_8h_source.html#l00119">Env.h:120</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1jtx_1_1Env_html_a65bedb2e0babbd55343f721de9008a37"><div class="ttname"><a href="classripple_1_1test_1_1jtx_1_1Env.html#a65bedb2e0babbd55343f721de9008a37">ripple::test::jtx::Env::current</a></div><div class="ttdeci">std::shared_ptr&lt; OpenView const &gt; current() const</div><div class="ttdoc">Returns the current ledger.</div><div class="ttdef"><b>Definition:</b> <a href="Env_8h_source.html#l00328">Env.h:328</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1jtx_1_1Env_html_acd48f8ab02c37b1a30cedf4dec7cc96c"><div class="ttname"><a href="classripple_1_1test_1_1jtx_1_1Env.html#acd48f8ab02c37b1a30cedf4dec7cc96c">ripple::test::jtx::Env::app</a></div><div class="ttdeci">Application &amp; app()</div><div class="ttdef"><b>Definition:</b> <a href="Env_8h_source.html#l00258">Env.h:258</a></div></div>
<div class="ttc" id="anamespaceripple_1_1credentials_html_abd2ed437891b9bd542d2afc3f5f4bc58"><div class="ttname"><a href="namespaceripple_1_1credentials.html#abd2ed437891b9bd542d2afc3f5f4bc58">ripple::credentials::valid</a></div><div class="ttdeci">TER valid(PreclaimContext const &amp;ctx, AccountID const &amp;src)</div><div class="ttdef"><b>Definition:</b> <a href="CredentialHelpers_8cpp_source.html#l00153">CredentialHelpers.cpp:153</a></div></div>
<div class="ttc" id="anamespaceripple_1_1test_1_1jtx_html_af5441d84d5977d52246c5226313560d4"><div class="ttname"><a href="namespaceripple_1_1test_1_1jtx.html#af5441d84d5977d52246c5226313560d4">ripple::test::jtx::supported_amendments</a></div><div class="ttdeci">FeatureBitset supported_amendments()</div><div class="ttdef"><b>Definition:</b> <a href="Env_8h_source.html#l00073">Env.h:73</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_a2127aa882d06ad6aaae928d2e80fb395"><div class="ttname"><a href="namespaceripple.html#a2127aa882d06ad6aaae928d2e80fb395">ripple::strUnHex</a></div><div class="ttdeci">std::optional&lt; Blob &gt; strUnHex(std::size_t strSize, Iterator begin, Iterator end)</div><div class="ttdef"><b>Definition:</b> <a href="StringUtilities_8h_source.html#l00052">StringUtilities.h:52</a></div></div>
<div class="ttc" id="anamespaceripple_html_a93f2333b362ee67694b78f55eadf7805"><div class="ttname"><a href="namespaceripple.html#a93f2333b362ee67694b78f55eadf7805">ripple::makeSlice</a></div><div class="ttdeci">std::enable_if_t&lt; std::is_same&lt; T, char &gt;::value||std::is_same&lt; T, unsigned char &gt;::value, Slice &gt; makeSlice(std::array&lt; T, N &gt; const &amp;a)</div><div class="ttdef"><b>Definition:</b> <a href="Slice_8h_source.html#l00244">Slice.h:244</a></div></div>
<div class="ttc" id="anamespaceripple_html_abcad59b0151763334cc398263373bcdd"><div class="ttname"><a href="namespaceripple.html#abcad59b0151763334cc398263373bcdd">ripple::Validity</a></div><div class="ttdeci">Validity</div><div class="ttdoc">Describes the pre-processing validity of a transaction.</div><div class="ttdef"><b>Definition:</b> <a href="apply_8h_source.html#l00040">apply.h:40</a></div></div>
<div class="ttc" id="anamespaceripple_html_abcad59b0151763334cc398263373bcdd"><div class="ttname"><a href="namespaceripple.html#abcad59b0151763334cc398263373bcdd">ripple::Validity</a></div><div class="ttdeci">Validity</div><div class="ttdoc">Describes the pre-processing validity of a transaction.</div><div class="ttdef"><b>Definition:</b> <a href="apply_8h_source.html#l00041">apply.h:41</a></div></div>
<div class="ttc" id="anamespaceripple_html_abcad59b0151763334cc398263373bcdda3ac705f2acd51a4613f9188c05c91d0d"><div class="ttname"><a href="namespaceripple.html#abcad59b0151763334cc398263373bcdda3ac705f2acd51a4613f9188c05c91d0d">ripple::Validity::Valid</a></div><div class="ttdeci">@ Valid</div><div class="ttdoc">Signature and local checks are good / passed.</div></div>
<div class="ttc" id="anamespaceripple_html_adb47f5675e01882e14c2cf9cc5700648"><div class="ttname"><a href="namespaceripple.html#adb47f5675e01882e14c2cf9cc5700648">ripple::checkValidity</a></div><div class="ttdeci">std::pair&lt; Validity, std::string &gt; checkValidity(HashRouter &amp;router, STTx const &amp;tx, Rules const &amp;rules, Config const &amp;config)</div><div class="ttdoc">Checks transaction signature and local checks.</div><div class="ttdef"><b>Definition:</b> <a href="apply_8cpp_source.html#l00037">apply.cpp:37</a></div></div>
<div class="ttc" id="anamespaceripple_html_adb47f5675e01882e14c2cf9cc5700648"><div class="ttname"><a href="namespaceripple.html#adb47f5675e01882e14c2cf9cc5700648">ripple::checkValidity</a></div><div class="ttdeci">std::pair&lt; Validity, std::string &gt; checkValidity(HashRouter &amp;router, STTx const &amp;tx, Rules const &amp;rules, Config const &amp;config)</div><div class="ttdoc">Checks transaction signature and local checks.</div><div class="ttdef"><b>Definition:</b> <a href="apply_8cpp_source.html#l00038">apply.cpp:38</a></div></div>
<div class="ttc" id="aref_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/utility/functional/ref.html">std::ref</a></div><div class="ttdeci">T ref(T... args)</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->