mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-21 11:35:53 +00:00
564 lines
117 KiB
HTML
564 lines
117 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
|
<meta name="generator" content="Doxygen 1.8.17"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<title>rippled: Change.cpp Source File</title>
|
|
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="jquery.js"></script>
|
|
<script type="text/javascript" src="dynsections.js"></script>
|
|
<link href="search/search.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="search/searchdata.js"></script>
|
|
<script type="text/javascript" src="search/search.js"></script>
|
|
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
|
</head>
|
|
<body>
|
|
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
|
<div id="titlearea">
|
|
<table cellspacing="0" cellpadding="0">
|
|
<tbody>
|
|
<tr style="height: 56px;">
|
|
<td id="projectalign" style="padding-left: 0.5em;">
|
|
<div id="projectname">rippled
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.8.17 -->
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
|
var searchBox = new SearchBox("searchBox", "search",false,'Search');
|
|
/* @license-end */
|
|
</script>
|
|
<script type="text/javascript" src="menudata.js"></script>
|
|
<script type="text/javascript" src="menu.js"></script>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
|
$(function() {
|
|
initMenu('',true,false,'search.php','Search');
|
|
$(document).ready(function() { init_search(); });
|
|
});
|
|
/* @license-end */</script>
|
|
<div id="main-nav"></div>
|
|
<!-- window showing the filter options -->
|
|
<div id="MSearchSelectWindow"
|
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
|
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
|
</div>
|
|
|
|
<!-- iframe showing the search results (closed by default) -->
|
|
<div id="MSearchResultsWindow">
|
|
<iframe src="javascript:void(0)" frameborder="0"
|
|
name="MSearchResults" id="MSearchResults">
|
|
</iframe>
|
|
</div>
|
|
|
|
<div id="nav-path" class="navpath">
|
|
<ul>
|
|
<li class="navelem"><a class="el" href="dir_df9c78dcf3f59a33b12284f95992a64b.html">ripple</a></li><li class="navelem"><a class="el" href="dir_9f69212e4c6e2ca9ec5ab59cd7b6275c.html">app</a></li><li class="navelem"><a class="el" href="dir_08bd996c7140e5d4c4a2548bd66a393f.html">tx</a></li><li class="navelem"><a class="el" href="dir_03680b44059da148632e530fc6dc63c7.html">impl</a></li> </ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<div class="header">
|
|
<div class="headertitle">
|
|
<div class="title">Change.cpp</div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">//------------------------------------------------------------------------------</span></div>
|
|
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">/*</span></div>
|
|
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> This file is part of rippled: https://github.com/ripple/rippled</span></div>
|
|
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> Copyright (c) 2012, 2013 Ripple Labs Inc.</span></div>
|
|
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"></span> </div>
|
|
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> Permission to use, copy, modify, and/or distribute this software for any</span></div>
|
|
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> purpose with or without fee is hereby granted, provided that the above</span></div>
|
|
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"> copyright notice and this permission notice appear in all copies.</span></div>
|
|
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment"></span> </div>
|
|
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"> THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES</span></div>
|
|
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF</span></div>
|
|
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"> MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR</span></div>
|
|
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment"> ANY SPECIAL , DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES</span></div>
|
|
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment"> WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN</span></div>
|
|
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment"> ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF</span></div>
|
|
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment"> OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.</span></div>
|
|
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment">*/</span></div>
|
|
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment">//==============================================================================</span></div>
|
|
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>  </div>
|
|
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="preprocessor">#include <ripple/app/ledger/Ledger.h></span></div>
|
|
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#include <ripple/app/main/Application.h></span></div>
|
|
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor">#include <ripple/app/misc/AmendmentTable.h></span></div>
|
|
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="preprocessor">#include <ripple/app/misc/NetworkOPs.h></span></div>
|
|
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#include <ripple/app/tx/impl/Change.h></span></div>
|
|
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="preprocessor">#include <ripple/basics/Log.h></span></div>
|
|
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="preprocessor">#include <ripple/protocol/Feature.h></span></div>
|
|
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="preprocessor">#include <ripple/protocol/Indexes.h></span></div>
|
|
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="preprocessor">#include <ripple/protocol/TxFlags.h></span></div>
|
|
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  </div>
|
|
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="keyword">namespace </span><a class="code" href="namespaceripple.html">ripple</a> {</div>
|
|
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  </div>
|
|
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <a class="code" href="namespaceripple.html#af99ba2263d2a1e29207c40a35fc9f6b3">NotTEC</a></div>
|
|
<div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="classripple_1_1Change.html#afc28f33bba943d8b06805979060c49b0"> 33</a></span> <a class="code" href="classripple_1_1Change.html#afc28f33bba943d8b06805979060c49b0">Change::preflight</a>(<a class="code" href="structripple_1_1PreflightContext.html">PreflightContext</a> <span class="keyword">const</span>& ctx)</div>
|
|
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span> {</div>
|
|
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  <span class="keyword">auto</span> <span class="keyword">const</span> ret = <a class="code" href="namespaceripple.html#a362865ef53c336f61de3da6dfc05664a">preflight0</a>(ctx);</div>
|
|
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  <span class="keywordflow">if</span> (!<a class="code" href="namespaceripple.html#a5b31f337f444082f547ef1838e7064fc">isTesSuccess</a>(ret))</div>
|
|
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  <span class="keywordflow">return</span> ret;</div>
|
|
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  </div>
|
|
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  <span class="keyword">auto</span> account = ctx.<a class="code" href="structripple_1_1PreflightContext.html#af202c00e509cfbb1df4fe69f4d6d6560">tx</a>.<a class="code" href="classripple_1_1STObject.html#a0d2d874d34a1c3ed432cdb9fb1386b35">getAccountID</a>(<a class="code" href="namespaceripple.html#af0fe0cd9ec9c5f73998088d7d133c394">sfAccount</a>);</div>
|
|
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  <span class="keywordflow">if</span> (account != beast::zero)</div>
|
|
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  {</div>
|
|
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  JLOG(ctx.<a class="code" href="structripple_1_1PreflightContext.html#a7db9100a0f215cba1c093674692601c4">j</a>.<a class="code" href="classbeast_1_1Journal.html#ad8fefe3e8ad583e1ed1bf02094ac3d8f">warn</a>()) << <span class="stringliteral">"Change: Bad source id"</span>;</div>
|
|
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  <span class="keywordflow">return</span> <a class="code" href="namespaceripple.html#afe21c8454670d46fb93751a5edffed46a099c540ff97d54cf841bbe8fff2f3936">temBAD_SRC_ACCOUNT</a>;</div>
|
|
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  }</div>
|
|
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  </div>
|
|
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  <span class="comment">// No point in going any further if the transaction fee is malformed.</span></div>
|
|
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  <span class="keyword">auto</span> <span class="keyword">const</span> fee = ctx.<a class="code" href="structripple_1_1PreflightContext.html#af202c00e509cfbb1df4fe69f4d6d6560">tx</a>.<a class="code" href="classripple_1_1STObject.html#a8e207109e646759f4927d90e4404893f">getFieldAmount</a>(<a class="code" href="namespaceripple.html#a95389dfbdac38b12c6387ce8d7b869e3">sfFee</a>);</div>
|
|
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  <span class="keywordflow">if</span> (!fee.native() || fee != beast::zero)</div>
|
|
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  {</div>
|
|
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  JLOG(ctx.<a class="code" href="structripple_1_1PreflightContext.html#a7db9100a0f215cba1c093674692601c4">j</a>.<a class="code" href="classbeast_1_1Journal.html#ad8fefe3e8ad583e1ed1bf02094ac3d8f">warn</a>()) << <span class="stringliteral">"Change: invalid fee"</span>;</div>
|
|
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  <span class="keywordflow">return</span> <a class="code" href="namespaceripple.html#afe21c8454670d46fb93751a5edffed46a3210708be8e611097ad2ae1e1a1734fb">temBAD_FEE</a>;</div>
|
|
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  }</div>
|
|
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  </div>
|
|
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  <span class="keywordflow">if</span> (!ctx.<a class="code" href="structripple_1_1PreflightContext.html#af202c00e509cfbb1df4fe69f4d6d6560">tx</a>.<a class="code" href="classripple_1_1STTx.html#a85013803638c7bd4c8cfa952b5445d30">getSigningPubKey</a>().<a class="codeRef" href="http://en.cppreference.com/w/cpp/container/vector/empty.html">empty</a>() || !ctx.<a class="code" href="structripple_1_1PreflightContext.html#af202c00e509cfbb1df4fe69f4d6d6560">tx</a>.<a class="code" href="classripple_1_1STTx.html#aad90c6ed8b77cc627bbef6ab2f96ec96">getSignature</a>().<a class="codeRef" href="http://en.cppreference.com/w/cpp/container/vector/empty.html">empty</a>() ||</div>
|
|
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  ctx.<a class="code" href="structripple_1_1PreflightContext.html#af202c00e509cfbb1df4fe69f4d6d6560">tx</a>.<a class="code" href="classripple_1_1STObject.html#aaf5d617701ac3afc4ad6a13862459692">isFieldPresent</a>(<a class="code" href="namespaceripple.html#a6c7393b8ba980386cc2fd1bcb832128a">sfSigners</a>))</div>
|
|
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  {</div>
|
|
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  JLOG(ctx.<a class="code" href="structripple_1_1PreflightContext.html#a7db9100a0f215cba1c093674692601c4">j</a>.<a class="code" href="classbeast_1_1Journal.html#ad8fefe3e8ad583e1ed1bf02094ac3d8f">warn</a>()) << <span class="stringliteral">"Change: Bad signature"</span>;</div>
|
|
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  <span class="keywordflow">return</span> <a class="code" href="namespaceripple.html#afe21c8454670d46fb93751a5edffed46aecc18d207c14edd554462f82555e9d92">temBAD_SIGNATURE</a>;</div>
|
|
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  }</div>
|
|
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  </div>
|
|
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  <span class="keywordflow">if</span> (ctx.<a class="code" href="structripple_1_1PreflightContext.html#af202c00e509cfbb1df4fe69f4d6d6560">tx</a>.<a class="code" href="classripple_1_1STTx.html#a484ebc991c4b79d36d388f1ab143a9cb">getSequence</a>() != 0 || ctx.<a class="code" href="structripple_1_1PreflightContext.html#af202c00e509cfbb1df4fe69f4d6d6560">tx</a>.<a class="code" href="classripple_1_1STObject.html#aaf5d617701ac3afc4ad6a13862459692">isFieldPresent</a>(<a class="code" href="namespaceripple.html#a79718944ee9814817f43065752c76b77">sfPreviousTxnID</a>))</div>
|
|
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  {</div>
|
|
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  JLOG(ctx.<a class="code" href="structripple_1_1PreflightContext.html#a7db9100a0f215cba1c093674692601c4">j</a>.<a class="code" href="classbeast_1_1Journal.html#ad8fefe3e8ad583e1ed1bf02094ac3d8f">warn</a>()) << <span class="stringliteral">"Change: Bad sequence"</span>;</div>
|
|
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  <span class="keywordflow">return</span> <a class="code" href="namespaceripple.html#afe21c8454670d46fb93751a5edffed46a53a64dd14cce4cae9e2f063ad33faaff">temBAD_SEQUENCE</a>;</div>
|
|
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  }</div>
|
|
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  </div>
|
|
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  <span class="keywordflow">if</span> (ctx.<a class="code" href="structripple_1_1PreflightContext.html#af202c00e509cfbb1df4fe69f4d6d6560">tx</a>.<a class="code" href="classripple_1_1STTx.html#ac1eac05342231bce66b0924340da1ae9">getTxnType</a>() == <a class="code" href="namespaceripple.html#a48e7bc26e67dbb8709698c89f67a9264a2b1632b6f19b0e05c73086acb1731b48">ttUNL_MODIFY</a> &&</div>
|
|
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  !ctx.<a class="code" href="structripple_1_1PreflightContext.html#af305cba8e0b5dd06e61d2dc6ac74c1a8">rules</a>.<a class="code" href="classripple_1_1Rules.html#a7d7f2142bf5c4a4ddf9fba8eb6c2aebd">enabled</a>(<a class="code" href="namespaceripple.html#afb8eb6b8a92d7cb7fe9e359677ab2532">featureNegativeUNL</a>))</div>
|
|
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  {</div>
|
|
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  JLOG(ctx.<a class="code" href="structripple_1_1PreflightContext.html#a7db9100a0f215cba1c093674692601c4">j</a>.<a class="code" href="classbeast_1_1Journal.html#ad8fefe3e8ad583e1ed1bf02094ac3d8f">warn</a>()) << <span class="stringliteral">"Change: NegativeUNL not enabled"</span>;</div>
|
|
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  <span class="keywordflow">return</span> <a class="code" href="namespaceripple.html#afe21c8454670d46fb93751a5edffed46ac3482079467d517ea82aa9c8fa693d21">temDISABLED</a>;</div>
|
|
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  }</div>
|
|
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  </div>
|
|
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  <span class="keywordflow">return</span> <a class="code" href="namespaceripple.html#aabc7f150d5082c73116a1cd5962b434da28c7d8b3ed759d363503a05fcd59f151">tesSUCCESS</a>;</div>
|
|
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span> }</div>
|
|
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  </div>
|
|
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span> <a class="code" href="classripple_1_1TERSubset.html">TER</a></div>
|
|
<div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="classripple_1_1Change.html#aaa019bb2d9d9f3192d8d7550b0915c25"> 78</a></span> <a class="code" href="classripple_1_1Change.html#aaa019bb2d9d9f3192d8d7550b0915c25">Change::preclaim</a>(<a class="code" href="structripple_1_1PreclaimContext.html">PreclaimContext</a> <span class="keyword">const</span>& ctx)</div>
|
|
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span> {</div>
|
|
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  <span class="comment">// If tapOPEN_LEDGER is resurrected into ApplyFlags,</span></div>
|
|
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  <span class="comment">// this block can be moved to preflight.</span></div>
|
|
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  <span class="keywordflow">if</span> (ctx.<a class="code" href="structripple_1_1PreclaimContext.html#a05d5cf6207c1127c25dcd7c3f763b9c5">view</a>.<a class="code" href="classripple_1_1ReadView.html#a8dc63ee1e4ae7b2f96823e146c53d03e">open</a>())</div>
|
|
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  {</div>
|
|
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  JLOG(ctx.<a class="code" href="structripple_1_1PreclaimContext.html#a534551c8ca0dd7afc8fe9098bf9da780">j</a>.<a class="code" href="classbeast_1_1Journal.html#ad8fefe3e8ad583e1ed1bf02094ac3d8f">warn</a>()) << <span class="stringliteral">"Change transaction against open ledger"</span>;</div>
|
|
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  <span class="keywordflow">return</span> <a class="code" href="namespaceripple.html#afe21c8454670d46fb93751a5edffed46a76453a8d513e20754ca7cff63d7546b8">temINVALID</a>;</div>
|
|
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  }</div>
|
|
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  </div>
|
|
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  <span class="keywordflow">switch</span> (ctx.<a class="code" href="structripple_1_1PreclaimContext.html#a8e1240b39791cf309b9caaffe8e5d306">tx</a>.<a class="code" href="classripple_1_1STTx.html#ac1eac05342231bce66b0924340da1ae9">getTxnType</a>())</div>
|
|
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  {</div>
|
|
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  <span class="keywordflow">case</span> <a class="code" href="namespaceripple.html#a48e7bc26e67dbb8709698c89f67a9264a0c108e5d380e14099ad0299d5c0ee510">ttAMENDMENT</a>:</div>
|
|
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  <span class="keywordflow">case</span> <a class="code" href="namespaceripple.html#a48e7bc26e67dbb8709698c89f67a9264aded2ff2e2fb748fa8f007ca05719d8f8">ttFEE</a>:</div>
|
|
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  <span class="keywordflow">case</span> <a class="code" href="namespaceripple.html#a48e7bc26e67dbb8709698c89f67a9264a2b1632b6f19b0e05c73086acb1731b48">ttUNL_MODIFY</a>:</div>
|
|
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  <span class="keywordflow">return</span> <a class="code" href="namespaceripple.html#aabc7f150d5082c73116a1cd5962b434da28c7d8b3ed759d363503a05fcd59f151">tesSUCCESS</a>;</div>
|
|
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  <span class="keywordflow">default</span>:</div>
|
|
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  <span class="keywordflow">return</span> <a class="code" href="namespaceripple.html#afe21c8454670d46fb93751a5edffed46a1dad6e2d630423dd67f4a540305f8b3c">temUNKNOWN</a>;</div>
|
|
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  }</div>
|
|
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span> }</div>
|
|
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  </div>
|
|
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span> <a class="code" href="classripple_1_1TERSubset.html">TER</a></div>
|
|
<div class="line"><a name="l00100"></a><span class="lineno"><a class="line" href="classripple_1_1Change.html#af1fdcb02736b88b81c504ac3722efadf"> 100</a></span> <a class="code" href="classripple_1_1Change.html#af1fdcb02736b88b81c504ac3722efadf">Change::doApply</a>()</div>
|
|
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span> {</div>
|
|
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  <span class="keywordflow">switch</span> (<a class="code" href="classripple_1_1Transactor.html#aef4ef0a89b5595b2a688b89e4ecef833">ctx_</a>.<a class="code" href="classripple_1_1ApplyContext.html#a8c8757b3b1f88baef47b31ed4e9682d0">tx</a>.<a class="code" href="classripple_1_1STTx.html#ac1eac05342231bce66b0924340da1ae9">getTxnType</a>())</div>
|
|
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  {</div>
|
|
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  <span class="keywordflow">case</span> <a class="code" href="namespaceripple.html#a48e7bc26e67dbb8709698c89f67a9264a0c108e5d380e14099ad0299d5c0ee510">ttAMENDMENT</a>:</div>
|
|
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  <span class="keywordflow">return</span> <a class="code" href="classripple_1_1Change.html#ad18fdff092829125147e99733b563767">applyAmendment</a>();</div>
|
|
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  <span class="keywordflow">case</span> <a class="code" href="namespaceripple.html#a48e7bc26e67dbb8709698c89f67a9264aded2ff2e2fb748fa8f007ca05719d8f8">ttFEE</a>:</div>
|
|
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  <span class="keywordflow">return</span> <a class="code" href="classripple_1_1Change.html#a679b7947204889ec797a02e9574392e1">applyFee</a>();</div>
|
|
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  <span class="keywordflow">case</span> <a class="code" href="namespaceripple.html#a48e7bc26e67dbb8709698c89f67a9264a2b1632b6f19b0e05c73086acb1731b48">ttUNL_MODIFY</a>:</div>
|
|
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  <span class="keywordflow">return</span> <a class="code" href="classripple_1_1Change.html#a676329f9caf84309ef136cbe71d0ebda">applyUNLModify</a>();</div>
|
|
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  <span class="keywordflow">default</span>:</div>
|
|
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  assert(0);</div>
|
|
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  <span class="keywordflow">return</span> <a class="code" href="namespaceripple.html#a75cb21d7f1df42f2fdc8efddb79b63f4a6c46c4df51fe2c0abff61e840c9bbc40">tefFAILURE</a>;</div>
|
|
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  }</div>
|
|
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span> }</div>
|
|
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  </div>
|
|
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span> <span class="keywordtype">void</span></div>
|
|
<div class="line"><a name="l00117"></a><span class="lineno"><a class="line" href="classripple_1_1Change.html#a69cd5bf7979d79ffc7d2a7b813ff967e"> 117</a></span> <a class="code" href="classripple_1_1Change.html#a69cd5bf7979d79ffc7d2a7b813ff967e">Change::preCompute</a>()</div>
|
|
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span> {</div>
|
|
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  <a class="code" href="classripple_1_1Transactor.html#a4164eb695aa99f3be286df6e98e3e1f9">account_</a> = <a class="code" href="classripple_1_1Transactor.html#aef4ef0a89b5595b2a688b89e4ecef833">ctx_</a>.<a class="code" href="classripple_1_1ApplyContext.html#a8c8757b3b1f88baef47b31ed4e9682d0">tx</a>.<a class="code" href="classripple_1_1STObject.html#a0d2d874d34a1c3ed432cdb9fb1386b35">getAccountID</a>(<a class="code" href="namespaceripple.html#af0fe0cd9ec9c5f73998088d7d133c394">sfAccount</a>);</div>
|
|
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  assert(<a class="code" href="classripple_1_1Transactor.html#a4164eb695aa99f3be286df6e98e3e1f9">account_</a> == beast::zero);</div>
|
|
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span> }</div>
|
|
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  </div>
|
|
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span> <a class="code" href="classripple_1_1TERSubset.html">TER</a></div>
|
|
<div class="line"><a name="l00124"></a><span class="lineno"><a class="line" href="classripple_1_1Change.html#ad18fdff092829125147e99733b563767"> 124</a></span> <a class="code" href="classripple_1_1Change.html#ad18fdff092829125147e99733b563767">Change::applyAmendment</a>()</div>
|
|
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span> {</div>
|
|
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  <a class="code" href="classripple_1_1base__uint.html">uint256</a> amendment(<a class="code" href="classripple_1_1Transactor.html#aef4ef0a89b5595b2a688b89e4ecef833">ctx_</a>.<a class="code" href="classripple_1_1ApplyContext.html#a8c8757b3b1f88baef47b31ed4e9682d0">tx</a>.<a class="code" href="classripple_1_1STObject.html#af89b6c7fd94c998549037d0c44a068a1">getFieldH256</a>(<a class="code" href="namespaceripple.html#a6876042e8ba024aff79bc8c36c7f62c8">sfAmendment</a>));</div>
|
|
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  </div>
|
|
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  <span class="keyword">auto</span> <span class="keyword">const</span> k = <a class="code" href="namespaceripple_1_1keylet.html#a5660f18c64be5f8270fe66fcc25d0de8">keylet::amendments</a>();</div>
|
|
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  </div>
|
|
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">SLE::pointer</a> amendmentObject = <a class="code" href="classripple_1_1Transactor.html#a1ac5d16d7b21e8af9cc94d7af39a85d5">view</a>().<a class="code" href="classripple_1_1ApplyView.html#aad9fb1233dec10dcc10c2e3b1da6a723">peek</a>(k);</div>
|
|
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  </div>
|
|
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  <span class="keywordflow">if</span> (!amendmentObject)</div>
|
|
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  {</div>
|
|
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  amendmentObject = std::make_shared<SLE>(k);</div>
|
|
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  <a class="code" href="classripple_1_1Transactor.html#a1ac5d16d7b21e8af9cc94d7af39a85d5">view</a>().<a class="code" href="classripple_1_1ApplyView.html#aa3c5b5cd9dca5f906be4b36640706e3c">insert</a>(amendmentObject);</div>
|
|
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  }</div>
|
|
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  </div>
|
|
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  <a class="code" href="classripple_1_1STVector256.html">STVector256</a> amendments = amendmentObject->getFieldV256(<a class="code" href="namespaceripple.html#a9e03c8b33593df82d17427a8771e3106">sfAmendments</a>);</div>
|
|
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>  </div>
|
|
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  <span class="keywordflow">if</span> (<a class="codeRef" href="http://en.cppreference.com/w/cpp/algorithm/find.html">std::find</a>(amendments.begin(), amendments.end(), amendment) !=</div>
|
|
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  amendments.end())</div>
|
|
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span>  <span class="keywordflow">return</span> <a class="code" href="namespaceripple.html#a75cb21d7f1df42f2fdc8efddb79b63f4ac01c14dcda25a99606dcd9a039bcaa70">tefALREADY</a>;</div>
|
|
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  </div>
|
|
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>  <span class="keyword">auto</span> flags = <a class="code" href="classripple_1_1Transactor.html#aef4ef0a89b5595b2a688b89e4ecef833">ctx_</a>.<a class="code" href="classripple_1_1ApplyContext.html#a8c8757b3b1f88baef47b31ed4e9682d0">tx</a>.<a class="code" href="classripple_1_1STObject.html#af5aa57043ec772da30341e3c3b823d7f">getFlags</a>();</div>
|
|
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span>  </div>
|
|
<div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  <span class="keyword">const</span> <span class="keywordtype">bool</span> gotMajority = (flags & <a class="code" href="namespaceripple.html#a815e32da6cdc73f9585ba984a8d6135f">tfGotMajority</a>) != 0;</div>
|
|
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  <span class="keyword">const</span> <span class="keywordtype">bool</span> lostMajority = (flags & <a class="code" href="namespaceripple.html#a24beb52a8f552c7fc4da41fce5e20c06">tfLostMajority</a>) != 0;</div>
|
|
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  </div>
|
|
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span>  <span class="keywordflow">if</span> (gotMajority && lostMajority)</div>
|
|
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  <span class="keywordflow">return</span> <a class="code" href="namespaceripple.html#afe21c8454670d46fb93751a5edffed46aa4754e0f122658747650b3b1c0a846a8">temINVALID_FLAG</a>;</div>
|
|
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span>  </div>
|
|
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span>  <a class="code" href="classripple_1_1STArray.html">STArray</a> newMajorities(<a class="code" href="namespaceripple.html#a3b87008a5cddf47c7d5510eb8be50902">sfMajorities</a>);</div>
|
|
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span>  </div>
|
|
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span>  <span class="keywordtype">bool</span> found = <span class="keyword">false</span>;</div>
|
|
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span>  <span class="keywordflow">if</span> (amendmentObject->isFieldPresent(<a class="code" href="namespaceripple.html#a3b87008a5cddf47c7d5510eb8be50902">sfMajorities</a>))</div>
|
|
<div class="line"><a name="l00156"></a><span class="lineno"> 156</span>  {</div>
|
|
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span>  <span class="keyword">const</span> <a class="code" href="classripple_1_1STArray.html">STArray</a>& oldMajorities =</div>
|
|
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span>  amendmentObject->getFieldArray(<a class="code" href="namespaceripple.html#a3b87008a5cddf47c7d5510eb8be50902">sfMajorities</a>);</div>
|
|
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span>  <span class="keywordflow">for</span> (<span class="keyword">auto</span> <span class="keyword">const</span>& majority : oldMajorities)</div>
|
|
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span>  {</div>
|
|
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  <span class="keywordflow">if</span> (majority.getFieldH256(<a class="code" href="namespaceripple.html#a6876042e8ba024aff79bc8c36c7f62c8">sfAmendment</a>) == amendment)</div>
|
|
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span>  {</div>
|
|
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span>  <span class="keywordflow">if</span> (gotMajority)</div>
|
|
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span>  <span class="keywordflow">return</span> <a class="code" href="namespaceripple.html#a75cb21d7f1df42f2fdc8efddb79b63f4ac01c14dcda25a99606dcd9a039bcaa70">tefALREADY</a>;</div>
|
|
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span>  found = <span class="keyword">true</span>;</div>
|
|
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span>  }</div>
|
|
<div class="line"><a name="l00167"></a><span class="lineno"> 167</span>  <span class="keywordflow">else</span></div>
|
|
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span>  {</div>
|
|
<div class="line"><a name="l00169"></a><span class="lineno"> 169</span>  <span class="comment">// pass through</span></div>
|
|
<div class="line"><a name="l00170"></a><span class="lineno"> 170</span>  newMajorities.<a class="code" href="classripple_1_1STArray.html#adc3dc750320964c46b6d4ea2af8b8bc7">push_back</a>(majority);</div>
|
|
<div class="line"><a name="l00171"></a><span class="lineno"> 171</span>  }</div>
|
|
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span>  }</div>
|
|
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span>  }</div>
|
|
<div class="line"><a name="l00174"></a><span class="lineno"> 174</span>  </div>
|
|
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span>  <span class="keywordflow">if</span> (!found && lostMajority)</div>
|
|
<div class="line"><a name="l00176"></a><span class="lineno"> 176</span>  <span class="keywordflow">return</span> <a class="code" href="namespaceripple.html#a75cb21d7f1df42f2fdc8efddb79b63f4ac01c14dcda25a99606dcd9a039bcaa70">tefALREADY</a>;</div>
|
|
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span>  </div>
|
|
<div class="line"><a name="l00178"></a><span class="lineno"> 178</span>  <span class="keywordflow">if</span> (gotMajority)</div>
|
|
<div class="line"><a name="l00179"></a><span class="lineno"> 179</span>  {</div>
|
|
<div class="line"><a name="l00180"></a><span class="lineno"> 180</span>  <span class="comment">// This amendment now has a majority</span></div>
|
|
<div class="line"><a name="l00181"></a><span class="lineno"> 181</span>  newMajorities.<a class="code" href="classripple_1_1STArray.html#adc3dc750320964c46b6d4ea2af8b8bc7">push_back</a>(<a class="code" href="classripple_1_1STObject.html">STObject</a>(<a class="code" href="namespaceripple.html#a6596545fefe1428d9fef7b037f609e10">sfMajority</a>));</div>
|
|
<div class="line"><a name="l00182"></a><span class="lineno"> 182</span>  <span class="keyword">auto</span>& entry = newMajorities.<a class="code" href="classripple_1_1STArray.html#a9a8e8e818ee5ba2536921d3e63cda98e">back</a>();</div>
|
|
<div class="line"><a name="l00183"></a><span class="lineno"> 183</span>  entry.<a class="code" href="classripple_1_1STObject.html#ad924902da7debaf286597d6da0ae26e9">emplace_back</a>(<a class="code" href="namespaceripple.html#acdd14356c421d93afd7b29eb4b4eaae4">STHash256</a>(<a class="code" href="namespaceripple.html#a6876042e8ba024aff79bc8c36c7f62c8">sfAmendment</a>, amendment));</div>
|
|
<div class="line"><a name="l00184"></a><span class="lineno"> 184</span>  entry.emplace_back(<a class="code" href="namespaceripple.html#afe4a518d4dbda10e150b7400cfc0bf89">STUInt32</a>(</div>
|
|
<div class="line"><a name="l00185"></a><span class="lineno"> 185</span>  <a class="code" href="namespaceripple.html#ad1ba5ab6bbe324c1cabd16b7ed667340">sfCloseTime</a>, <a class="code" href="classripple_1_1Transactor.html#a1ac5d16d7b21e8af9cc94d7af39a85d5">view</a>().parentCloseTime().time_since_epoch().count()));</div>
|
|
<div class="line"><a name="l00186"></a><span class="lineno"> 186</span>  </div>
|
|
<div class="line"><a name="l00187"></a><span class="lineno"> 187</span>  <span class="keywordflow">if</span> (!<a class="code" href="classripple_1_1Transactor.html#aef4ef0a89b5595b2a688b89e4ecef833">ctx_</a>.<a class="code" href="classripple_1_1ApplyContext.html#a6ec1f10e560afe30ed435c3f7eea715d">app</a>.<a class="code" href="classripple_1_1Application.html#af620c027bd43a2a76049b31aca493ea8">getAmendmentTable</a>().<a class="code" href="classripple_1_1AmendmentTable.html#a5fce75b79a87e541918be639a28f3c87">isSupported</a>(amendment))</div>
|
|
<div class="line"><a name="l00188"></a><span class="lineno"> 188</span>  {</div>
|
|
<div class="line"><a name="l00189"></a><span class="lineno"> 189</span>  JLOG(<a class="code" href="classripple_1_1Transactor.html#aafdaa4e246ee6879df9cbbf2482dcc7d">j_</a>.<a class="code" href="classbeast_1_1Journal.html#ad8fefe3e8ad583e1ed1bf02094ac3d8f">warn</a>()) << <span class="stringliteral">"Unsupported amendment "</span> << amendment</div>
|
|
<div class="line"><a name="l00190"></a><span class="lineno"> 190</span>  << <span class="stringliteral">" received a majority."</span>;</div>
|
|
<div class="line"><a name="l00191"></a><span class="lineno"> 191</span>  }</div>
|
|
<div class="line"><a name="l00192"></a><span class="lineno"> 192</span>  }</div>
|
|
<div class="line"><a name="l00193"></a><span class="lineno"> 193</span>  <span class="keywordflow">else</span> <span class="keywordflow">if</span> (!lostMajority)</div>
|
|
<div class="line"><a name="l00194"></a><span class="lineno"> 194</span>  {</div>
|
|
<div class="line"><a name="l00195"></a><span class="lineno"> 195</span>  <span class="comment">// No flags, enable amendment</span></div>
|
|
<div class="line"><a name="l00196"></a><span class="lineno"> 196</span>  amendments.push_back(amendment);</div>
|
|
<div class="line"><a name="l00197"></a><span class="lineno"> 197</span>  amendmentObject->setFieldV256(<a class="code" href="namespaceripple.html#a9e03c8b33593df82d17427a8771e3106">sfAmendments</a>, amendments);</div>
|
|
<div class="line"><a name="l00198"></a><span class="lineno"> 198</span>  </div>
|
|
<div class="line"><a name="l00199"></a><span class="lineno"> 199</span>  <a class="code" href="classripple_1_1Transactor.html#aef4ef0a89b5595b2a688b89e4ecef833">ctx_</a>.<a class="code" href="classripple_1_1ApplyContext.html#a6ec1f10e560afe30ed435c3f7eea715d">app</a>.<a class="code" href="classripple_1_1Application.html#af620c027bd43a2a76049b31aca493ea8">getAmendmentTable</a>().<a class="code" href="classripple_1_1AmendmentTable.html#ac9e23d71814bcf7c601f37e0b9323b1a">enable</a>(amendment);</div>
|
|
<div class="line"><a name="l00200"></a><span class="lineno"> 200</span>  </div>
|
|
<div class="line"><a name="l00201"></a><span class="lineno"> 201</span>  <span class="keywordflow">if</span> (!<a class="code" href="classripple_1_1Transactor.html#aef4ef0a89b5595b2a688b89e4ecef833">ctx_</a>.<a class="code" href="classripple_1_1ApplyContext.html#a6ec1f10e560afe30ed435c3f7eea715d">app</a>.<a class="code" href="classripple_1_1Application.html#af620c027bd43a2a76049b31aca493ea8">getAmendmentTable</a>().<a class="code" href="classripple_1_1AmendmentTable.html#a5fce75b79a87e541918be639a28f3c87">isSupported</a>(amendment))</div>
|
|
<div class="line"><a name="l00202"></a><span class="lineno"> 202</span>  {</div>
|
|
<div class="line"><a name="l00203"></a><span class="lineno"> 203</span>  JLOG(<a class="code" href="classripple_1_1Transactor.html#aafdaa4e246ee6879df9cbbf2482dcc7d">j_</a>.<a class="code" href="classbeast_1_1Journal.html#a49b0713e65bb8e2c51b76fbf16252afe">error</a>()) << <span class="stringliteral">"Unsupported amendment "</span> << amendment</div>
|
|
<div class="line"><a name="l00204"></a><span class="lineno"> 204</span>  << <span class="stringliteral">" activated: server blocked."</span>;</div>
|
|
<div class="line"><a name="l00205"></a><span class="lineno"> 205</span>  <a class="code" href="classripple_1_1Transactor.html#aef4ef0a89b5595b2a688b89e4ecef833">ctx_</a>.<a class="code" href="classripple_1_1ApplyContext.html#a6ec1f10e560afe30ed435c3f7eea715d">app</a>.<a class="code" href="classripple_1_1Application.html#a7c963aa5c47180b24897ff6b5622e5bc">getOPs</a>().<a class="code" href="classripple_1_1NetworkOPs.html#a591349c566e53de85c2b97fd5dbba0df">setAmendmentBlocked</a>();</div>
|
|
<div class="line"><a name="l00206"></a><span class="lineno"> 206</span>  }</div>
|
|
<div class="line"><a name="l00207"></a><span class="lineno"> 207</span>  }</div>
|
|
<div class="line"><a name="l00208"></a><span class="lineno"> 208</span>  </div>
|
|
<div class="line"><a name="l00209"></a><span class="lineno"> 209</span>  <span class="keywordflow">if</span> (newMajorities.<a class="code" href="classripple_1_1STArray.html#a158ccc470b30b011cd462eadcf6f249c">empty</a>())</div>
|
|
<div class="line"><a name="l00210"></a><span class="lineno"> 210</span>  amendmentObject->makeFieldAbsent(<a class="code" href="namespaceripple.html#a3b87008a5cddf47c7d5510eb8be50902">sfMajorities</a>);</div>
|
|
<div class="line"><a name="l00211"></a><span class="lineno"> 211</span>  <span class="keywordflow">else</span></div>
|
|
<div class="line"><a name="l00212"></a><span class="lineno"> 212</span>  amendmentObject->setFieldArray(<a class="code" href="namespaceripple.html#a3b87008a5cddf47c7d5510eb8be50902">sfMajorities</a>, newMajorities);</div>
|
|
<div class="line"><a name="l00213"></a><span class="lineno"> 213</span>  </div>
|
|
<div class="line"><a name="l00214"></a><span class="lineno"> 214</span>  <a class="code" href="classripple_1_1Transactor.html#a1ac5d16d7b21e8af9cc94d7af39a85d5">view</a>().<a class="code" href="classripple_1_1ApplyView.html#a542437b9b59a623e755979acdc075af5">update</a>(amendmentObject);</div>
|
|
<div class="line"><a name="l00215"></a><span class="lineno"> 215</span>  </div>
|
|
<div class="line"><a name="l00216"></a><span class="lineno"> 216</span>  <span class="keywordflow">return</span> <a class="code" href="namespaceripple.html#aabc7f150d5082c73116a1cd5962b434da28c7d8b3ed759d363503a05fcd59f151">tesSUCCESS</a>;</div>
|
|
<div class="line"><a name="l00217"></a><span class="lineno"> 217</span> }</div>
|
|
<div class="line"><a name="l00218"></a><span class="lineno"> 218</span>  </div>
|
|
<div class="line"><a name="l00219"></a><span class="lineno"> 219</span> <a class="code" href="classripple_1_1TERSubset.html">TER</a></div>
|
|
<div class="line"><a name="l00220"></a><span class="lineno"><a class="line" href="classripple_1_1Change.html#a679b7947204889ec797a02e9574392e1"> 220</a></span> <a class="code" href="classripple_1_1Change.html#a679b7947204889ec797a02e9574392e1">Change::applyFee</a>()</div>
|
|
<div class="line"><a name="l00221"></a><span class="lineno"> 221</span> {</div>
|
|
<div class="line"><a name="l00222"></a><span class="lineno"> 222</span>  <span class="keyword">auto</span> <span class="keyword">const</span> k = <a class="code" href="namespaceripple_1_1keylet.html#ac58ecac7b057504ea6c1706c0ee04623">keylet::fees</a>();</div>
|
|
<div class="line"><a name="l00223"></a><span class="lineno"> 223</span>  </div>
|
|
<div class="line"><a name="l00224"></a><span class="lineno"> 224</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">SLE::pointer</a> feeObject = <a class="code" href="classripple_1_1Transactor.html#a1ac5d16d7b21e8af9cc94d7af39a85d5">view</a>().<a class="code" href="classripple_1_1ApplyView.html#aad9fb1233dec10dcc10c2e3b1da6a723">peek</a>(k);</div>
|
|
<div class="line"><a name="l00225"></a><span class="lineno"> 225</span>  </div>
|
|
<div class="line"><a name="l00226"></a><span class="lineno"> 226</span>  <span class="keywordflow">if</span> (!feeObject)</div>
|
|
<div class="line"><a name="l00227"></a><span class="lineno"> 227</span>  {</div>
|
|
<div class="line"><a name="l00228"></a><span class="lineno"> 228</span>  feeObject = std::make_shared<SLE>(k);</div>
|
|
<div class="line"><a name="l00229"></a><span class="lineno"> 229</span>  <a class="code" href="classripple_1_1Transactor.html#a1ac5d16d7b21e8af9cc94d7af39a85d5">view</a>().<a class="code" href="classripple_1_1ApplyView.html#aa3c5b5cd9dca5f906be4b36640706e3c">insert</a>(feeObject);</div>
|
|
<div class="line"><a name="l00230"></a><span class="lineno"> 230</span>  }</div>
|
|
<div class="line"><a name="l00231"></a><span class="lineno"> 231</span>  </div>
|
|
<div class="line"><a name="l00232"></a><span class="lineno"> 232</span>  feeObject->setFieldU64(<a class="code" href="namespaceripple.html#ae1860b879bd20588ab7b31546e4441a1">sfBaseFee</a>, <a class="code" href="classripple_1_1Transactor.html#aef4ef0a89b5595b2a688b89e4ecef833">ctx_</a>.<a class="code" href="classripple_1_1ApplyContext.html#a8c8757b3b1f88baef47b31ed4e9682d0">tx</a>.<a class="code" href="classripple_1_1STObject.html#a6b0981ac21449e6ab51c3621d60404ed">getFieldU64</a>(<a class="code" href="namespaceripple.html#ae1860b879bd20588ab7b31546e4441a1">sfBaseFee</a>));</div>
|
|
<div class="line"><a name="l00233"></a><span class="lineno"> 233</span>  feeObject->setFieldU32(</div>
|
|
<div class="line"><a name="l00234"></a><span class="lineno"> 234</span>  <a class="code" href="namespaceripple.html#ac07aad796b465989ac66dd4702216fa3">sfReferenceFeeUnits</a>, <a class="code" href="classripple_1_1Transactor.html#aef4ef0a89b5595b2a688b89e4ecef833">ctx_</a>.<a class="code" href="classripple_1_1ApplyContext.html#a8c8757b3b1f88baef47b31ed4e9682d0">tx</a>.<a class="code" href="classripple_1_1STObject.html#a55d1b6946f96a770f3b2195eb5a5a943">getFieldU32</a>(<a class="code" href="namespaceripple.html#ac07aad796b465989ac66dd4702216fa3">sfReferenceFeeUnits</a>));</div>
|
|
<div class="line"><a name="l00235"></a><span class="lineno"> 235</span>  feeObject->setFieldU32(<a class="code" href="namespaceripple.html#a62820bfff4e83bb84a86533d1e102df1">sfReserveBase</a>, <a class="code" href="classripple_1_1Transactor.html#aef4ef0a89b5595b2a688b89e4ecef833">ctx_</a>.<a class="code" href="classripple_1_1ApplyContext.html#a8c8757b3b1f88baef47b31ed4e9682d0">tx</a>.<a class="code" href="classripple_1_1STObject.html#a55d1b6946f96a770f3b2195eb5a5a943">getFieldU32</a>(<a class="code" href="namespaceripple.html#a62820bfff4e83bb84a86533d1e102df1">sfReserveBase</a>));</div>
|
|
<div class="line"><a name="l00236"></a><span class="lineno"> 236</span>  feeObject->setFieldU32(</div>
|
|
<div class="line"><a name="l00237"></a><span class="lineno"> 237</span>  <a class="code" href="namespaceripple.html#a7728fc7a6b58ab2649923ca61da8e2b6">sfReserveIncrement</a>, <a class="code" href="classripple_1_1Transactor.html#aef4ef0a89b5595b2a688b89e4ecef833">ctx_</a>.<a class="code" href="classripple_1_1ApplyContext.html#a8c8757b3b1f88baef47b31ed4e9682d0">tx</a>.<a class="code" href="classripple_1_1STObject.html#a55d1b6946f96a770f3b2195eb5a5a943">getFieldU32</a>(<a class="code" href="namespaceripple.html#a7728fc7a6b58ab2649923ca61da8e2b6">sfReserveIncrement</a>));</div>
|
|
<div class="line"><a name="l00238"></a><span class="lineno"> 238</span>  </div>
|
|
<div class="line"><a name="l00239"></a><span class="lineno"> 239</span>  <a class="code" href="classripple_1_1Transactor.html#a1ac5d16d7b21e8af9cc94d7af39a85d5">view</a>().<a class="code" href="classripple_1_1ApplyView.html#a542437b9b59a623e755979acdc075af5">update</a>(feeObject);</div>
|
|
<div class="line"><a name="l00240"></a><span class="lineno"> 240</span>  </div>
|
|
<div class="line"><a name="l00241"></a><span class="lineno"> 241</span>  JLOG(<a class="code" href="classripple_1_1Transactor.html#aafdaa4e246ee6879df9cbbf2482dcc7d">j_</a>.<a class="code" href="classbeast_1_1Journal.html#ad8fefe3e8ad583e1ed1bf02094ac3d8f">warn</a>()) << <span class="stringliteral">"Fees have been changed"</span>;</div>
|
|
<div class="line"><a name="l00242"></a><span class="lineno"> 242</span>  <span class="keywordflow">return</span> <a class="code" href="namespaceripple.html#aabc7f150d5082c73116a1cd5962b434da28c7d8b3ed759d363503a05fcd59f151">tesSUCCESS</a>;</div>
|
|
<div class="line"><a name="l00243"></a><span class="lineno"> 243</span> }</div>
|
|
<div class="line"><a name="l00244"></a><span class="lineno"> 244</span>  </div>
|
|
<div class="line"><a name="l00245"></a><span class="lineno"> 245</span> <a class="code" href="classripple_1_1TERSubset.html">TER</a></div>
|
|
<div class="line"><a name="l00246"></a><span class="lineno"><a class="line" href="classripple_1_1Change.html#a676329f9caf84309ef136cbe71d0ebda"> 246</a></span> <a class="code" href="classripple_1_1Change.html#a676329f9caf84309ef136cbe71d0ebda">Change::applyUNLModify</a>()</div>
|
|
<div class="line"><a name="l00247"></a><span class="lineno"> 247</span> {</div>
|
|
<div class="line"><a name="l00248"></a><span class="lineno"> 248</span>  <span class="keywordflow">if</span> (!<a class="code" href="namespaceripple.html#a81aef0121745f69cf76b866c91c2639c">isFlagLedger</a>(<a class="code" href="classripple_1_1Transactor.html#a1ac5d16d7b21e8af9cc94d7af39a85d5">view</a>().seq()))</div>
|
|
<div class="line"><a name="l00249"></a><span class="lineno"> 249</span>  {</div>
|
|
<div class="line"><a name="l00250"></a><span class="lineno"> 250</span>  JLOG(<a class="code" href="classripple_1_1Transactor.html#aafdaa4e246ee6879df9cbbf2482dcc7d">j_</a>.<a class="code" href="classbeast_1_1Journal.html#ad8fefe3e8ad583e1ed1bf02094ac3d8f">warn</a>()) << <span class="stringliteral">"N-UNL: applyUNLModify, not a flag ledger, seq="</span></div>
|
|
<div class="line"><a name="l00251"></a><span class="lineno"> 251</span>  << <a class="code" href="classripple_1_1Transactor.html#a1ac5d16d7b21e8af9cc94d7af39a85d5">view</a>().<a class="code" href="classripple_1_1ReadView.html#ac284afc905c482953c35c61b459fd85b">seq</a>();</div>
|
|
<div class="line"><a name="l00252"></a><span class="lineno"> 252</span>  <span class="keywordflow">return</span> <a class="code" href="namespaceripple.html#a75cb21d7f1df42f2fdc8efddb79b63f4a6c46c4df51fe2c0abff61e840c9bbc40">tefFAILURE</a>;</div>
|
|
<div class="line"><a name="l00253"></a><span class="lineno"> 253</span>  }</div>
|
|
<div class="line"><a name="l00254"></a><span class="lineno"> 254</span>  </div>
|
|
<div class="line"><a name="l00255"></a><span class="lineno"> 255</span>  <span class="keywordflow">if</span> (!<a class="code" href="classripple_1_1Transactor.html#aef4ef0a89b5595b2a688b89e4ecef833">ctx_</a>.<a class="code" href="classripple_1_1ApplyContext.html#a8c8757b3b1f88baef47b31ed4e9682d0">tx</a>.<a class="code" href="classripple_1_1STObject.html#aaf5d617701ac3afc4ad6a13862459692">isFieldPresent</a>(<a class="code" href="namespaceripple.html#ac5385dc95d1e83e85ac526fa9b37bddf">sfUNLModifyDisabling</a>) ||</div>
|
|
<div class="line"><a name="l00256"></a><span class="lineno"> 256</span>  <a class="code" href="classripple_1_1Transactor.html#aef4ef0a89b5595b2a688b89e4ecef833">ctx_</a>.<a class="code" href="classripple_1_1ApplyContext.html#a8c8757b3b1f88baef47b31ed4e9682d0">tx</a>.<a class="code" href="classripple_1_1STObject.html#a038971e344b2dfc77e0dbc6daef30565">getFieldU8</a>(<a class="code" href="namespaceripple.html#ac5385dc95d1e83e85ac526fa9b37bddf">sfUNLModifyDisabling</a>) > 1 ||</div>
|
|
<div class="line"><a name="l00257"></a><span class="lineno"> 257</span>  !<a class="code" href="classripple_1_1Transactor.html#aef4ef0a89b5595b2a688b89e4ecef833">ctx_</a>.<a class="code" href="classripple_1_1ApplyContext.html#a8c8757b3b1f88baef47b31ed4e9682d0">tx</a>.<a class="code" href="classripple_1_1STObject.html#aaf5d617701ac3afc4ad6a13862459692">isFieldPresent</a>(<a class="code" href="namespaceripple.html#a1932b552a7e76eba44a31bdcdd4a5315">sfLedgerSequence</a>) ||</div>
|
|
<div class="line"><a name="l00258"></a><span class="lineno"> 258</span>  !<a class="code" href="classripple_1_1Transactor.html#aef4ef0a89b5595b2a688b89e4ecef833">ctx_</a>.<a class="code" href="classripple_1_1ApplyContext.html#a8c8757b3b1f88baef47b31ed4e9682d0">tx</a>.<a class="code" href="classripple_1_1STObject.html#aaf5d617701ac3afc4ad6a13862459692">isFieldPresent</a>(<a class="code" href="namespaceripple.html#a04502f7a2b948a097dee080766c67904">sfUNLModifyValidator</a>))</div>
|
|
<div class="line"><a name="l00259"></a><span class="lineno"> 259</span>  {</div>
|
|
<div class="line"><a name="l00260"></a><span class="lineno"> 260</span>  JLOG(<a class="code" href="classripple_1_1Transactor.html#aafdaa4e246ee6879df9cbbf2482dcc7d">j_</a>.<a class="code" href="classbeast_1_1Journal.html#ad8fefe3e8ad583e1ed1bf02094ac3d8f">warn</a>()) << <span class="stringliteral">"N-UNL: applyUNLModify, wrong Tx format."</span>;</div>
|
|
<div class="line"><a name="l00261"></a><span class="lineno"> 261</span>  <span class="keywordflow">return</span> <a class="code" href="namespaceripple.html#a75cb21d7f1df42f2fdc8efddb79b63f4a6c46c4df51fe2c0abff61e840c9bbc40">tefFAILURE</a>;</div>
|
|
<div class="line"><a name="l00262"></a><span class="lineno"> 262</span>  }</div>
|
|
<div class="line"><a name="l00263"></a><span class="lineno"> 263</span>  </div>
|
|
<div class="line"><a name="l00264"></a><span class="lineno"> 264</span>  <span class="keywordtype">bool</span> <span class="keyword">const</span> disabling = <a class="code" href="classripple_1_1Transactor.html#aef4ef0a89b5595b2a688b89e4ecef833">ctx_</a>.<a class="code" href="classripple_1_1ApplyContext.html#a8c8757b3b1f88baef47b31ed4e9682d0">tx</a>.<a class="code" href="classripple_1_1STObject.html#a038971e344b2dfc77e0dbc6daef30565">getFieldU8</a>(<a class="code" href="namespaceripple.html#ac5385dc95d1e83e85ac526fa9b37bddf">sfUNLModifyDisabling</a>);</div>
|
|
<div class="line"><a name="l00265"></a><span class="lineno"> 265</span>  <span class="keyword">auto</span> <span class="keyword">const</span> seq = <a class="code" href="classripple_1_1Transactor.html#aef4ef0a89b5595b2a688b89e4ecef833">ctx_</a>.<a class="code" href="classripple_1_1ApplyContext.html#a8c8757b3b1f88baef47b31ed4e9682d0">tx</a>.<a class="code" href="classripple_1_1STObject.html#a55d1b6946f96a770f3b2195eb5a5a943">getFieldU32</a>(<a class="code" href="namespaceripple.html#a1932b552a7e76eba44a31bdcdd4a5315">sfLedgerSequence</a>);</div>
|
|
<div class="line"><a name="l00266"></a><span class="lineno"> 266</span>  <span class="keywordflow">if</span> (seq != <a class="code" href="classripple_1_1Transactor.html#a1ac5d16d7b21e8af9cc94d7af39a85d5">view</a>().seq())</div>
|
|
<div class="line"><a name="l00267"></a><span class="lineno"> 267</span>  {</div>
|
|
<div class="line"><a name="l00268"></a><span class="lineno"> 268</span>  JLOG(<a class="code" href="classripple_1_1Transactor.html#aafdaa4e246ee6879df9cbbf2482dcc7d">j_</a>.<a class="code" href="classbeast_1_1Journal.html#ad8fefe3e8ad583e1ed1bf02094ac3d8f">warn</a>()) << <span class="stringliteral">"N-UNL: applyUNLModify, wrong ledger seq="</span> << seq;</div>
|
|
<div class="line"><a name="l00269"></a><span class="lineno"> 269</span>  <span class="keywordflow">return</span> <a class="code" href="namespaceripple.html#a75cb21d7f1df42f2fdc8efddb79b63f4a6c46c4df51fe2c0abff61e840c9bbc40">tefFAILURE</a>;</div>
|
|
<div class="line"><a name="l00270"></a><span class="lineno"> 270</span>  }</div>
|
|
<div class="line"><a name="l00271"></a><span class="lineno"> 271</span>  </div>
|
|
<div class="line"><a name="l00272"></a><span class="lineno"> 272</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/container/vector.html">Blob</a> <span class="keyword">const</span> validator = <a class="code" href="classripple_1_1Transactor.html#aef4ef0a89b5595b2a688b89e4ecef833">ctx_</a>.<a class="code" href="classripple_1_1ApplyContext.html#a8c8757b3b1f88baef47b31ed4e9682d0">tx</a>.<a class="code" href="classripple_1_1STObject.html#a09be758ae97b9e9e392aa2606cc0559f">getFieldVL</a>(<a class="code" href="namespaceripple.html#a04502f7a2b948a097dee080766c67904">sfUNLModifyValidator</a>);</div>
|
|
<div class="line"><a name="l00273"></a><span class="lineno"> 273</span>  <span class="keywordflow">if</span> (!<a class="code" href="namespaceripple.html#abe1502195233c7375f3465f17c7610e4">publicKeyType</a>(<a class="code" href="namespaceripple.html#aabe37451093c21757855542d68fba3ce">makeSlice</a>(validator)))</div>
|
|
<div class="line"><a name="l00274"></a><span class="lineno"> 274</span>  {</div>
|
|
<div class="line"><a name="l00275"></a><span class="lineno"> 275</span>  JLOG(<a class="code" href="classripple_1_1Transactor.html#aafdaa4e246ee6879df9cbbf2482dcc7d">j_</a>.<a class="code" href="classbeast_1_1Journal.html#ad8fefe3e8ad583e1ed1bf02094ac3d8f">warn</a>()) << <span class="stringliteral">"N-UNL: applyUNLModify, bad validator key"</span>;</div>
|
|
<div class="line"><a name="l00276"></a><span class="lineno"> 276</span>  <span class="keywordflow">return</span> <a class="code" href="namespaceripple.html#a75cb21d7f1df42f2fdc8efddb79b63f4a6c46c4df51fe2c0abff61e840c9bbc40">tefFAILURE</a>;</div>
|
|
<div class="line"><a name="l00277"></a><span class="lineno"> 277</span>  }</div>
|
|
<div class="line"><a name="l00278"></a><span class="lineno"> 278</span>  </div>
|
|
<div class="line"><a name="l00279"></a><span class="lineno"> 279</span>  JLOG(<a class="code" href="classripple_1_1Transactor.html#aafdaa4e246ee6879df9cbbf2482dcc7d">j_</a>.<a class="code" href="classbeast_1_1Journal.html#a87d6bd59020d94110027dcab3d9e3357">info</a>()) << <span class="stringliteral">"N-UNL: applyUNLModify, "</span></div>
|
|
<div class="line"><a name="l00280"></a><span class="lineno"> 280</span>  << (disabling ? <span class="stringliteral">"ToDisable"</span> : <span class="stringliteral">"ToReEnable"</span>)</div>
|
|
<div class="line"><a name="l00281"></a><span class="lineno"> 281</span>  << <span class="stringliteral">" seq="</span> << seq</div>
|
|
<div class="line"><a name="l00282"></a><span class="lineno"> 282</span>  << <span class="stringliteral">" validator data:"</span> << <a class="code" href="namespaceripple.html#a86e358ce3f06ff049af13c2342791cf8">strHex</a>(validator);</div>
|
|
<div class="line"><a name="l00283"></a><span class="lineno"> 283</span>  </div>
|
|
<div class="line"><a name="l00284"></a><span class="lineno"> 284</span>  <span class="keyword">auto</span> <span class="keyword">const</span> k = <a class="code" href="namespaceripple_1_1keylet.html#a53590de263224dde45f4856da2852319">keylet::negativeUNL</a>();</div>
|
|
<div class="line"><a name="l00285"></a><span class="lineno"> 285</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">SLE::pointer</a> negUnlObject = <a class="code" href="classripple_1_1Transactor.html#a1ac5d16d7b21e8af9cc94d7af39a85d5">view</a>().<a class="code" href="classripple_1_1ApplyView.html#aad9fb1233dec10dcc10c2e3b1da6a723">peek</a>(k);</div>
|
|
<div class="line"><a name="l00286"></a><span class="lineno"> 286</span>  <span class="keywordflow">if</span> (!negUnlObject)</div>
|
|
<div class="line"><a name="l00287"></a><span class="lineno"> 287</span>  {</div>
|
|
<div class="line"><a name="l00288"></a><span class="lineno"> 288</span>  negUnlObject = std::make_shared<SLE>(k);</div>
|
|
<div class="line"><a name="l00289"></a><span class="lineno"> 289</span>  <a class="code" href="classripple_1_1Transactor.html#a1ac5d16d7b21e8af9cc94d7af39a85d5">view</a>().<a class="code" href="classripple_1_1ApplyView.html#aa3c5b5cd9dca5f906be4b36640706e3c">insert</a>(negUnlObject);</div>
|
|
<div class="line"><a name="l00290"></a><span class="lineno"> 290</span>  }</div>
|
|
<div class="line"><a name="l00291"></a><span class="lineno"> 291</span>  </div>
|
|
<div class="line"><a name="l00292"></a><span class="lineno"> 292</span>  <span class="keywordtype">bool</span> <span class="keyword">const</span> found = [&] {</div>
|
|
<div class="line"><a name="l00293"></a><span class="lineno"> 293</span>  <span class="keywordflow">if</span> (negUnlObject->isFieldPresent(<a class="code" href="namespaceripple.html#a4ea52a6d5f908bfcc5a6d31b7de4419a">sfDisabledValidators</a>))</div>
|
|
<div class="line"><a name="l00294"></a><span class="lineno"> 294</span>  {</div>
|
|
<div class="line"><a name="l00295"></a><span class="lineno"> 295</span>  <span class="keyword">auto</span> <span class="keyword">const</span>& negUnl =</div>
|
|
<div class="line"><a name="l00296"></a><span class="lineno"> 296</span>  negUnlObject->getFieldArray(<a class="code" href="namespaceripple.html#a4ea52a6d5f908bfcc5a6d31b7de4419a">sfDisabledValidators</a>);</div>
|
|
<div class="line"><a name="l00297"></a><span class="lineno"> 297</span>  <span class="keywordflow">for</span> (<span class="keyword">auto</span> <span class="keyword">const</span>& v : negUnl)</div>
|
|
<div class="line"><a name="l00298"></a><span class="lineno"> 298</span>  {</div>
|
|
<div class="line"><a name="l00299"></a><span class="lineno"> 299</span>  <span class="keywordflow">if</span> (v.isFieldPresent(<a class="code" href="namespaceripple.html#a30b618e8944f06b6bec7ee4e4bc0662a">sfPublicKey</a>) &&</div>
|
|
<div class="line"><a name="l00300"></a><span class="lineno"> 300</span>  v.getFieldVL(<a class="code" href="namespaceripple.html#a30b618e8944f06b6bec7ee4e4bc0662a">sfPublicKey</a>) == validator)</div>
|
|
<div class="line"><a name="l00301"></a><span class="lineno"> 301</span>  <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
|
|
<div class="line"><a name="l00302"></a><span class="lineno"> 302</span>  }</div>
|
|
<div class="line"><a name="l00303"></a><span class="lineno"> 303</span>  }</div>
|
|
<div class="line"><a name="l00304"></a><span class="lineno"> 304</span>  <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
|
|
<div class="line"><a name="l00305"></a><span class="lineno"> 305</span>  }();</div>
|
|
<div class="line"><a name="l00306"></a><span class="lineno"> 306</span>  </div>
|
|
<div class="line"><a name="l00307"></a><span class="lineno"> 307</span>  <span class="keywordflow">if</span> (disabling)</div>
|
|
<div class="line"><a name="l00308"></a><span class="lineno"> 308</span>  {</div>
|
|
<div class="line"><a name="l00309"></a><span class="lineno"> 309</span>  <span class="comment">// cannot have more than one toDisable</span></div>
|
|
<div class="line"><a name="l00310"></a><span class="lineno"> 310</span>  <span class="keywordflow">if</span> (negUnlObject->isFieldPresent(<a class="code" href="namespaceripple.html#a4866a4e67ef4ee45e477e4a850fa3952">sfValidatorToDisable</a>))</div>
|
|
<div class="line"><a name="l00311"></a><span class="lineno"> 311</span>  {</div>
|
|
<div class="line"><a name="l00312"></a><span class="lineno"> 312</span>  JLOG(<a class="code" href="classripple_1_1Transactor.html#aafdaa4e246ee6879df9cbbf2482dcc7d">j_</a>.<a class="code" href="classbeast_1_1Journal.html#ad8fefe3e8ad583e1ed1bf02094ac3d8f">warn</a>()) << <span class="stringliteral">"N-UNL: applyUNLModify, already has ToDisable"</span>;</div>
|
|
<div class="line"><a name="l00313"></a><span class="lineno"> 313</span>  <span class="keywordflow">return</span> <a class="code" href="namespaceripple.html#a75cb21d7f1df42f2fdc8efddb79b63f4a6c46c4df51fe2c0abff61e840c9bbc40">tefFAILURE</a>;</div>
|
|
<div class="line"><a name="l00314"></a><span class="lineno"> 314</span>  }</div>
|
|
<div class="line"><a name="l00315"></a><span class="lineno"> 315</span>  </div>
|
|
<div class="line"><a name="l00316"></a><span class="lineno"> 316</span>  <span class="comment">// cannot be the same as toReEnable</span></div>
|
|
<div class="line"><a name="l00317"></a><span class="lineno"> 317</span>  <span class="keywordflow">if</span> (negUnlObject->isFieldPresent(<a class="code" href="namespaceripple.html#a9408db78895ee49dc4a6b9fb4afd83ec">sfValidatorToReEnable</a>))</div>
|
|
<div class="line"><a name="l00318"></a><span class="lineno"> 318</span>  {</div>
|
|
<div class="line"><a name="l00319"></a><span class="lineno"> 319</span>  <span class="keywordflow">if</span> (negUnlObject->getFieldVL(<a class="code" href="namespaceripple.html#a9408db78895ee49dc4a6b9fb4afd83ec">sfValidatorToReEnable</a>) == validator)</div>
|
|
<div class="line"><a name="l00320"></a><span class="lineno"> 320</span>  {</div>
|
|
<div class="line"><a name="l00321"></a><span class="lineno"> 321</span>  JLOG(<a class="code" href="classripple_1_1Transactor.html#aafdaa4e246ee6879df9cbbf2482dcc7d">j_</a>.<a class="code" href="classbeast_1_1Journal.html#ad8fefe3e8ad583e1ed1bf02094ac3d8f">warn</a>())</div>
|
|
<div class="line"><a name="l00322"></a><span class="lineno"> 322</span>  << <span class="stringliteral">"N-UNL: applyUNLModify, ToDisable is same as ToReEnable"</span>;</div>
|
|
<div class="line"><a name="l00323"></a><span class="lineno"> 323</span>  <span class="keywordflow">return</span> <a class="code" href="namespaceripple.html#a75cb21d7f1df42f2fdc8efddb79b63f4a6c46c4df51fe2c0abff61e840c9bbc40">tefFAILURE</a>;</div>
|
|
<div class="line"><a name="l00324"></a><span class="lineno"> 324</span>  }</div>
|
|
<div class="line"><a name="l00325"></a><span class="lineno"> 325</span>  }</div>
|
|
<div class="line"><a name="l00326"></a><span class="lineno"> 326</span>  </div>
|
|
<div class="line"><a name="l00327"></a><span class="lineno"> 327</span>  <span class="comment">// cannot be in negative UNL already</span></div>
|
|
<div class="line"><a name="l00328"></a><span class="lineno"> 328</span>  <span class="keywordflow">if</span> (found)</div>
|
|
<div class="line"><a name="l00329"></a><span class="lineno"> 329</span>  {</div>
|
|
<div class="line"><a name="l00330"></a><span class="lineno"> 330</span>  JLOG(<a class="code" href="classripple_1_1Transactor.html#aafdaa4e246ee6879df9cbbf2482dcc7d">j_</a>.<a class="code" href="classbeast_1_1Journal.html#ad8fefe3e8ad583e1ed1bf02094ac3d8f">warn</a>())</div>
|
|
<div class="line"><a name="l00331"></a><span class="lineno"> 331</span>  << <span class="stringliteral">"N-UNL: applyUNLModify, ToDisable already in negative UNL"</span>;</div>
|
|
<div class="line"><a name="l00332"></a><span class="lineno"> 332</span>  <span class="keywordflow">return</span> <a class="code" href="namespaceripple.html#a75cb21d7f1df42f2fdc8efddb79b63f4a6c46c4df51fe2c0abff61e840c9bbc40">tefFAILURE</a>;</div>
|
|
<div class="line"><a name="l00333"></a><span class="lineno"> 333</span>  }</div>
|
|
<div class="line"><a name="l00334"></a><span class="lineno"> 334</span>  </div>
|
|
<div class="line"><a name="l00335"></a><span class="lineno"> 335</span>  negUnlObject->setFieldVL(<a class="code" href="namespaceripple.html#a4866a4e67ef4ee45e477e4a850fa3952">sfValidatorToDisable</a>, validator);</div>
|
|
<div class="line"><a name="l00336"></a><span class="lineno"> 336</span>  }</div>
|
|
<div class="line"><a name="l00337"></a><span class="lineno"> 337</span>  <span class="keywordflow">else</span></div>
|
|
<div class="line"><a name="l00338"></a><span class="lineno"> 338</span>  {</div>
|
|
<div class="line"><a name="l00339"></a><span class="lineno"> 339</span>  <span class="comment">// cannot have more than one toReEnable</span></div>
|
|
<div class="line"><a name="l00340"></a><span class="lineno"> 340</span>  <span class="keywordflow">if</span> (negUnlObject->isFieldPresent(<a class="code" href="namespaceripple.html#a9408db78895ee49dc4a6b9fb4afd83ec">sfValidatorToReEnable</a>))</div>
|
|
<div class="line"><a name="l00341"></a><span class="lineno"> 341</span>  {</div>
|
|
<div class="line"><a name="l00342"></a><span class="lineno"> 342</span>  JLOG(<a class="code" href="classripple_1_1Transactor.html#aafdaa4e246ee6879df9cbbf2482dcc7d">j_</a>.<a class="code" href="classbeast_1_1Journal.html#ad8fefe3e8ad583e1ed1bf02094ac3d8f">warn</a>()) << <span class="stringliteral">"N-UNL: applyUNLModify, already has ToReEnable"</span>;</div>
|
|
<div class="line"><a name="l00343"></a><span class="lineno"> 343</span>  <span class="keywordflow">return</span> <a class="code" href="namespaceripple.html#a75cb21d7f1df42f2fdc8efddb79b63f4a6c46c4df51fe2c0abff61e840c9bbc40">tefFAILURE</a>;</div>
|
|
<div class="line"><a name="l00344"></a><span class="lineno"> 344</span>  }</div>
|
|
<div class="line"><a name="l00345"></a><span class="lineno"> 345</span>  </div>
|
|
<div class="line"><a name="l00346"></a><span class="lineno"> 346</span>  <span class="comment">// cannot be the same as toDisable</span></div>
|
|
<div class="line"><a name="l00347"></a><span class="lineno"> 347</span>  <span class="keywordflow">if</span> (negUnlObject->isFieldPresent(<a class="code" href="namespaceripple.html#a4866a4e67ef4ee45e477e4a850fa3952">sfValidatorToDisable</a>))</div>
|
|
<div class="line"><a name="l00348"></a><span class="lineno"> 348</span>  {</div>
|
|
<div class="line"><a name="l00349"></a><span class="lineno"> 349</span>  <span class="keywordflow">if</span> (negUnlObject->getFieldVL(<a class="code" href="namespaceripple.html#a4866a4e67ef4ee45e477e4a850fa3952">sfValidatorToDisable</a>) == validator)</div>
|
|
<div class="line"><a name="l00350"></a><span class="lineno"> 350</span>  {</div>
|
|
<div class="line"><a name="l00351"></a><span class="lineno"> 351</span>  JLOG(<a class="code" href="classripple_1_1Transactor.html#aafdaa4e246ee6879df9cbbf2482dcc7d">j_</a>.<a class="code" href="classbeast_1_1Journal.html#ad8fefe3e8ad583e1ed1bf02094ac3d8f">warn</a>())</div>
|
|
<div class="line"><a name="l00352"></a><span class="lineno"> 352</span>  << <span class="stringliteral">"N-UNL: applyUNLModify, ToReEnable is same as ToDisable"</span>;</div>
|
|
<div class="line"><a name="l00353"></a><span class="lineno"> 353</span>  <span class="keywordflow">return</span> <a class="code" href="namespaceripple.html#a75cb21d7f1df42f2fdc8efddb79b63f4a6c46c4df51fe2c0abff61e840c9bbc40">tefFAILURE</a>;</div>
|
|
<div class="line"><a name="l00354"></a><span class="lineno"> 354</span>  }</div>
|
|
<div class="line"><a name="l00355"></a><span class="lineno"> 355</span>  }</div>
|
|
<div class="line"><a name="l00356"></a><span class="lineno"> 356</span>  </div>
|
|
<div class="line"><a name="l00357"></a><span class="lineno"> 357</span>  <span class="comment">// must be in negative UNL</span></div>
|
|
<div class="line"><a name="l00358"></a><span class="lineno"> 358</span>  <span class="keywordflow">if</span> (!found)</div>
|
|
<div class="line"><a name="l00359"></a><span class="lineno"> 359</span>  {</div>
|
|
<div class="line"><a name="l00360"></a><span class="lineno"> 360</span>  JLOG(<a class="code" href="classripple_1_1Transactor.html#aafdaa4e246ee6879df9cbbf2482dcc7d">j_</a>.<a class="code" href="classbeast_1_1Journal.html#ad8fefe3e8ad583e1ed1bf02094ac3d8f">warn</a>())</div>
|
|
<div class="line"><a name="l00361"></a><span class="lineno"> 361</span>  << <span class="stringliteral">"N-UNL: applyUNLModify, ToReEnable is not in negative UNL"</span>;</div>
|
|
<div class="line"><a name="l00362"></a><span class="lineno"> 362</span>  <span class="keywordflow">return</span> <a class="code" href="namespaceripple.html#a75cb21d7f1df42f2fdc8efddb79b63f4a6c46c4df51fe2c0abff61e840c9bbc40">tefFAILURE</a>;</div>
|
|
<div class="line"><a name="l00363"></a><span class="lineno"> 363</span>  }</div>
|
|
<div class="line"><a name="l00364"></a><span class="lineno"> 364</span>  </div>
|
|
<div class="line"><a name="l00365"></a><span class="lineno"> 365</span>  negUnlObject->setFieldVL(<a class="code" href="namespaceripple.html#a9408db78895ee49dc4a6b9fb4afd83ec">sfValidatorToReEnable</a>, validator);</div>
|
|
<div class="line"><a name="l00366"></a><span class="lineno"> 366</span>  }</div>
|
|
<div class="line"><a name="l00367"></a><span class="lineno"> 367</span>  </div>
|
|
<div class="line"><a name="l00368"></a><span class="lineno"> 368</span>  <a class="code" href="classripple_1_1Transactor.html#a1ac5d16d7b21e8af9cc94d7af39a85d5">view</a>().<a class="code" href="classripple_1_1ApplyView.html#a542437b9b59a623e755979acdc075af5">update</a>(negUnlObject);</div>
|
|
<div class="line"><a name="l00369"></a><span class="lineno"> 369</span>  <span class="keywordflow">return</span> <a class="code" href="namespaceripple.html#aabc7f150d5082c73116a1cd5962b434da28c7d8b3ed759d363503a05fcd59f151">tesSUCCESS</a>;</div>
|
|
<div class="line"><a name="l00370"></a><span class="lineno"> 370</span> }</div>
|
|
<div class="line"><a name="l00371"></a><span class="lineno"> 371</span>  </div>
|
|
<div class="line"><a name="l00372"></a><span class="lineno"> 372</span> } <span class="comment">// namespace ripple</span></div>
|
|
</div><!-- fragment --></div><!-- contents -->
|
|
<div class="ttc" id="aclassripple_1_1STArray_html_a158ccc470b30b011cd462eadcf6f249c"><div class="ttname"><a href="classripple_1_1STArray.html#a158ccc470b30b011cd462eadcf6f249c">ripple::STArray::empty</a></div><div class="ttdeci">bool empty() const</div><div class="ttdef"><b>Definition:</b> <a href="STArray_8h_source.html#l00144">STArray.h:144</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1STTx_html_ac1eac05342231bce66b0924340da1ae9"><div class="ttname"><a href="classripple_1_1STTx.html#ac1eac05342231bce66b0924340da1ae9">ripple::STTx::getTxnType</a></div><div class="ttdeci">TxType getTxnType() const</div><div class="ttdef"><b>Definition:</b> <a href="STTx_8h_source.html#l00105">STTx.h:105</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_a81aef0121745f69cf76b866c91c2639c"><div class="ttname"><a href="namespaceripple.html#a81aef0121745f69cf76b866c91c2639c">ripple::isFlagLedger</a></div><div class="ttdeci">bool isFlagLedger(LedgerIndex seq)</div><div class="ttdoc">Returns true if the given ledgerIndex is a flag ledgerIndex.</div><div class="ttdef"><b>Definition:</b> <a href="Ledger_8cpp_source.html#l00857">Ledger.cpp:857</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_aabe37451093c21757855542d68fba3ce"><div class="ttname"><a href="namespaceripple.html#aabe37451093c21757855542d68fba3ce">ripple::makeSlice</a></div><div class="ttdeci">std::enable_if_t< std::is_same< T, char >::value||std::is_same< T, unsigned char >::value, Slice > makeSlice(std::array< T, N > const &a)</div><div class="ttdef"><b>Definition:</b> <a href="Slice_8h_source.html#l00240">Slice.h:240</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1Change_html_a676329f9caf84309ef136cbe71d0ebda"><div class="ttname"><a href="classripple_1_1Change.html#a676329f9caf84309ef136cbe71d0ebda">ripple::Change::applyUNLModify</a></div><div class="ttdeci">TER applyUNLModify()</div><div class="ttdef"><b>Definition:</b> <a href="Change_8cpp_source.html#l00246">Change.cpp:246</a></div></div>
|
|
<div class="ttc" id="ashared_ptr_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr< STLedgerEntry ></a></div></div>
|
|
<div class="ttc" id="astructripple_1_1PreclaimContext_html_a05d5cf6207c1127c25dcd7c3f763b9c5"><div class="ttname"><a href="structripple_1_1PreclaimContext.html#a05d5cf6207c1127c25dcd7c3f763b9c5">ripple::PreclaimContext::view</a></div><div class="ttdeci">ReadView const & view</div><div class="ttdef"><b>Definition:</b> <a href="Transactor_8h_source.html#l00057">Transactor.h:57</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_1_1keylet_html_a5660f18c64be5f8270fe66fcc25d0de8"><div class="ttname"><a href="namespaceripple_1_1keylet.html#a5660f18c64be5f8270fe66fcc25d0de8">ripple::keylet::amendments</a></div><div class="ttdeci">Keylet const & amendments() noexcept</div><div class="ttdoc">The index of the amendment table.</div><div class="ttdef"><b>Definition:</b> <a href="Indexes_8cpp_source.html#l00151">Indexes.cpp:151</a></div></div>
|
|
<div class="ttc" id="astructripple_1_1PreclaimContext_html_a534551c8ca0dd7afc8fe9098bf9da780"><div class="ttname"><a href="structripple_1_1PreclaimContext.html#a534551c8ca0dd7afc8fe9098bf9da780">ripple::PreclaimContext::j</a></div><div class="ttdeci">const beast::Journal j</div><div class="ttdef"><b>Definition:</b> <a href="Transactor_8h_source.html#l00061">Transactor.h:61</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_abe1502195233c7375f3465f17c7610e4"><div class="ttname"><a href="namespaceripple.html#abe1502195233c7375f3465f17c7610e4">ripple::publicKeyType</a></div><div class="ttdeci">boost::optional< KeyType > publicKeyType(Slice const &slice)</div><div class="ttdoc">Returns the type of public key.</div><div class="ttdef"><b>Definition:</b> <a href="PublicKey_8cpp_source.html#l00203">PublicKey.cpp:203</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1ApplyView_html_aad9fb1233dec10dcc10c2e3b1da6a723"><div class="ttname"><a href="classripple_1_1ApplyView.html#aad9fb1233dec10dcc10c2e3b1da6a723">ripple::ApplyView::peek</a></div><div class="ttdeci">virtual std::shared_ptr< SLE > peek(Keylet const &k)=0</div><div class="ttdoc">Prepare to modify the SLE associated with key.</div></div>
|
|
<div class="ttc" id="anamespaceripple_html_a6c7393b8ba980386cc2fd1bcb832128a"><div class="ttname"><a href="namespaceripple.html#a6c7393b8ba980386cc2fd1bcb832128a">ripple::sfSigners</a></div><div class="ttdeci">const SField sfSigners(access, STI_ARRAY, 3, "Signers", SField::sMD_Default, SField::notSigning)</div><div class="ttdef"><b>Definition:</b> <a href="SField_8h_source.html#l00516">SField.h:516</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1Transactor_html_aafdaa4e246ee6879df9cbbf2482dcc7d"><div class="ttname"><a href="classripple_1_1Transactor.html#aafdaa4e246ee6879df9cbbf2482dcc7d">ripple::Transactor::j_</a></div><div class="ttdeci">const beast::Journal j_</div><div class="ttdef"><b>Definition:</b> <a href="Transactor_8h_source.html#l00090">Transactor.h:90</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_a5b31f337f444082f547ef1838e7064fc"><div class="ttname"><a href="namespaceripple.html#a5b31f337f444082f547ef1838e7064fc">ripple::isTesSuccess</a></div><div class="ttdeci">bool isTesSuccess(TER x)</div><div class="ttdef"><b>Definition:</b> <a href="TER_8h_source.html#l00576">TER.h:576</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1STObject_html_a6b0981ac21449e6ab51c3621d60404ed"><div class="ttname"><a href="classripple_1_1STObject.html#a6b0981ac21449e6ab51c3621d60404ed">ripple::STObject::getFieldU64</a></div><div class="ttdeci">std::uint64_t getFieldU64(SField const &field) const</div><div class="ttdef"><b>Definition:</b> <a href="STObject_8cpp_source.html#l00538">STObject.cpp:538</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1Application_html_af620c027bd43a2a76049b31aca493ea8"><div class="ttname"><a href="classripple_1_1Application.html#af620c027bd43a2a76049b31aca493ea8">ripple::Application::getAmendmentTable</a></div><div class="ttdeci">virtual AmendmentTable & getAmendmentTable()=0</div></div>
|
|
<div class="ttc" id="avector_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector< unsigned char ></a></div></div>
|
|
<div class="ttc" id="afind_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/algorithm/find.html">std::find</a></div><div class="ttdeci">T find(T... args)</div></div>
|
|
<div class="ttc" id="anamespaceripple_html_afe4a518d4dbda10e150b7400cfc0bf89"><div class="ttname"><a href="namespaceripple.html#afe4a518d4dbda10e150b7400cfc0bf89">ripple::STUInt32</a></div><div class="ttdeci">STInteger< std::uint32_t > STUInt32</div><div class="ttdef"><b>Definition:</b> <a href="STInteger_8h_source.html#l00114">STInteger.h:114</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1STObject_html_a038971e344b2dfc77e0dbc6daef30565"><div class="ttname"><a href="classripple_1_1STObject.html#a038971e344b2dfc77e0dbc6daef30565">ripple::STObject::getFieldU8</a></div><div class="ttdeci">unsigned char getFieldU8(SField const &field) const</div><div class="ttdef"><b>Definition:</b> <a href="STObject_8cpp_source.html#l00520">STObject.cpp:520</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_af0fe0cd9ec9c5f73998088d7d133c394"><div class="ttname"><a href="namespaceripple.html#af0fe0cd9ec9c5f73998088d7d133c394">ripple::sfAccount</a></div><div class="ttdeci">const SF_Account sfAccount(access, STI_ACCOUNT, 1, "Account")</div><div class="ttdef"><b>Definition:</b> <a href="SField_8h_source.html#l00480">SField.h:480</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_a3b87008a5cddf47c7d5510eb8be50902"><div class="ttname"><a href="namespaceripple.html#a3b87008a5cddf47c7d5510eb8be50902">ripple::sfMajorities</a></div><div class="ttdeci">const SField sfMajorities(access, STI_ARRAY, 16, "Majorities")</div><div class="ttdef"><b>Definition:</b> <a href="SField_8h_source.html#l00523">SField.h:523</a></div></div>
|
|
<div class="ttc" id="aclassbeast_1_1Journal_html_ad8fefe3e8ad583e1ed1bf02094ac3d8f"><div class="ttname"><a href="classbeast_1_1Journal.html#ad8fefe3e8ad583e1ed1bf02094ac3d8f">beast::Journal::warn</a></div><div class="ttdeci">Stream warn() const</div><div class="ttdef"><b>Definition:</b> <a href="Journal_8h_source.html#l00327">Journal.h:327</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1STArray_html_adc3dc750320964c46b6d4ea2af8b8bc7"><div class="ttname"><a href="classripple_1_1STArray.html#adc3dc750320964c46b6d4ea2af8b8bc7">ripple::STArray::push_back</a></div><div class="ttdeci">void push_back(STObject const &object)</div><div class="ttdef"><b>Definition:</b> <a href="STArray_8h_source.html#l00102">STArray.h:102</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1Change_html_a69cd5bf7979d79ffc7d2a7b813ff967e"><div class="ttname"><a href="classripple_1_1Change.html#a69cd5bf7979d79ffc7d2a7b813ff967e">ripple::Change::preCompute</a></div><div class="ttdeci">void preCompute() override</div><div class="ttdef"><b>Definition:</b> <a href="Change_8cpp_source.html#l00117">Change.cpp:117</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1NetworkOPs_html_a591349c566e53de85c2b97fd5dbba0df"><div class="ttname"><a href="classripple_1_1NetworkOPs.html#a591349c566e53de85c2b97fd5dbba0df">ripple::NetworkOPs::setAmendmentBlocked</a></div><div class="ttdeci">virtual void setAmendmentBlocked()=0</div></div>
|
|
<div class="ttc" id="aclassripple_1_1ApplyView_html_a542437b9b59a623e755979acdc075af5"><div class="ttname"><a href="classripple_1_1ApplyView.html#a542437b9b59a623e755979acdc075af5">ripple::ApplyView::update</a></div><div class="ttdeci">virtual void update(std::shared_ptr< SLE > const &sle)=0</div><div class="ttdoc">Indicate changes to a peeked SLE.</div></div>
|
|
<div class="ttc" id="anamespaceripple_html_a04502f7a2b948a097dee080766c67904"><div class="ttname"><a href="namespaceripple.html#a04502f7a2b948a097dee080766c67904">ripple::sfUNLModifyValidator</a></div><div class="ttdeci">const SF_Blob sfUNLModifyValidator(access, STI_VL, 19, "UNLModifyValidator")</div><div class="ttdef"><b>Definition:</b> <a href="SField_8h_source.html#l00475">SField.h:475</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_ac5385dc95d1e83e85ac526fa9b37bddf"><div class="ttname"><a href="namespaceripple.html#ac5385dc95d1e83e85ac526fa9b37bddf">ripple::sfUNLModifyDisabling</a></div><div class="ttdeci">const SF_U8 sfUNLModifyDisabling(access, STI_UINT8, 17, "UNLModifyDisabling")</div><div class="ttdef"><b>Definition:</b> <a href="SField_8h_source.html#l00343">SField.h:343</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1STObject_html_a09be758ae97b9e9e392aa2606cc0559f"><div class="ttname"><a href="classripple_1_1STObject.html#a09be758ae97b9e9e392aa2606cc0559f">ripple::STObject::getFieldVL</a></div><div class="ttdeci">Blob getFieldVL(SField const &field) const</div><div class="ttdef"><b>Definition:</b> <a href="STObject_8cpp_source.html#l00568">STObject.cpp:568</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_a4ea52a6d5f908bfcc5a6d31b7de4419a"><div class="ttname"><a href="namespaceripple.html#a4ea52a6d5f908bfcc5a6d31b7de4419a">ripple::sfDisabledValidators</a></div><div class="ttdeci">const SField sfDisabledValidators(access, STI_ARRAY, 17, "DisabledValidators")</div><div class="ttdef"><b>Definition:</b> <a href="SField_8h_source.html#l00524">SField.h:524</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_a24beb52a8f552c7fc4da41fce5e20c06"><div class="ttname"><a href="namespaceripple.html#a24beb52a8f552c7fc4da41fce5e20c06">ripple::tfLostMajority</a></div><div class="ttdeci">const std::uint32_t tfLostMajority</div><div class="ttdef"><b>Definition:</b> <a href="TxFlags_8h_source.html#l00102">TxFlags.h:102</a></div></div>
|
|
<div class="ttc" id="astructripple_1_1PreflightContext_html_a7db9100a0f215cba1c093674692601c4"><div class="ttname"><a href="structripple_1_1PreflightContext.html#a7db9100a0f215cba1c093674692601c4">ripple::PreflightContext::j</a></div><div class="ttdeci">const beast::Journal j</div><div class="ttdef"><b>Definition:</b> <a href="Transactor_8h_source.html#l00039">Transactor.h:39</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_a62820bfff4e83bb84a86533d1e102df1"><div class="ttname"><a href="namespaceripple.html#a62820bfff4e83bb84a86533d1e102df1">ripple::sfReserveBase</a></div><div class="ttdeci">const SF_U32 sfReserveBase(access, STI_UINT32, 31, "ReserveBase")</div><div class="ttdef"><b>Definition:</b> <a href="SField_8h_source.html#l00384">SField.h:384</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_a815e32da6cdc73f9585ba984a8d6135f"><div class="ttname"><a href="namespaceripple.html#a815e32da6cdc73f9585ba984a8d6135f">ripple::tfGotMajority</a></div><div class="ttdeci">const std::uint32_t tfGotMajority</div><div class="ttdef"><b>Definition:</b> <a href="TxFlags_8h_source.html#l00101">TxFlags.h:101</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1Application_html_a7c963aa5c47180b24897ff6b5622e5bc"><div class="ttname"><a href="classripple_1_1Application.html#a7c963aa5c47180b24897ff6b5622e5bc">ripple::Application::getOPs</a></div><div class="ttdeci">virtual NetworkOPs & getOPs()=0</div></div>
|
|
<div class="ttc" id="anamespaceripple_html_a6596545fefe1428d9fef7b037f609e10"><div class="ttname"><a href="namespaceripple.html#a6596545fefe1428d9fef7b037f609e10">ripple::sfMajority</a></div><div class="ttdeci">const SField sfMajority(access, STI_OBJECT, 18, "Majority")</div><div class="ttdef"><b>Definition:</b> <a href="SField_8h_source.html#l00510">SField.h:510</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1ApplyContext_html_a6ec1f10e560afe30ed435c3f7eea715d"><div class="ttname"><a href="classripple_1_1ApplyContext.html#a6ec1f10e560afe30ed435c3f7eea715d">ripple::ApplyContext::app</a></div><div class="ttdeci">Application & app</div><div class="ttdef"><b>Definition:</b> <a href="ApplyContext_8h_source.html#l00047">ApplyContext.h:47</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_a48e7bc26e67dbb8709698c89f67a9264aded2ff2e2fb748fa8f007ca05719d8f8"><div class="ttname"><a href="namespaceripple.html#a48e7bc26e67dbb8709698c89f67a9264aded2ff2e2fb748fa8f007ca05719d8f8">ripple::ttFEE</a></div><div class="ttdeci">@ ttFEE</div><div class="ttdef"><b>Definition:</b> <a href="TxFormats_8h_source.html#l00060">TxFormats.h:60</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< 256 ></a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_afe21c8454670d46fb93751a5edffed46aa4754e0f122658747650b3b1c0a846a8"><div class="ttname"><a href="namespaceripple.html#afe21c8454670d46fb93751a5edffed46aa4754e0f122658747650b3b1c0a846a8">ripple::temINVALID_FLAG</a></div><div class="ttdeci">@ temINVALID_FLAG</div><div class="ttdef"><b>Definition:</b> <a href="TER_8h_source.html#l00106">TER.h:106</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_a362865ef53c336f61de3da6dfc05664a"><div class="ttname"><a href="namespaceripple.html#a362865ef53c336f61de3da6dfc05664a">ripple::preflight0</a></div><div class="ttdeci">NotTEC preflight0(PreflightContext const &ctx)</div><div class="ttdoc">Performs early sanity checks on the txid.</div><div class="ttdef"><b>Definition:</b> <a href="Transactor_8cpp_source.html#l00040">Transactor.cpp:40</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1STObject_html_a0d2d874d34a1c3ed432cdb9fb1386b35"><div class="ttname"><a href="classripple_1_1STObject.html#a0d2d874d34a1c3ed432cdb9fb1386b35">ripple::STObject::getAccountID</a></div><div class="ttdeci">AccountID getAccountID(SField const &field) const</div><div class="ttdef"><b>Definition:</b> <a href="STObject_8cpp_source.html#l00562">STObject.cpp:562</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_a6876042e8ba024aff79bc8c36c7f62c8"><div class="ttname"><a href="namespaceripple.html#a6876042e8ba024aff79bc8c36c7f62c8">ripple::sfAmendment</a></div><div class="ttdeci">const SF_U256 sfAmendment(access, STI_HASH256, 19, "Amendment")</div><div class="ttdef"><b>Definition:</b> <a href="SField_8h_source.html#l00431">SField.h:431</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1TERSubset_html"><div class="ttname"><a href="classripple_1_1TERSubset.html">ripple::TERSubset< CanCvtToTER ></a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1STArray_html"><div class="ttname"><a href="classripple_1_1STArray.html">ripple::STArray</a></div><div class="ttdef"><b>Definition:</b> <a href="STArray_8h_source.html#l00028">STArray.h:28</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_afe21c8454670d46fb93751a5edffed46a53a64dd14cce4cae9e2f063ad33faaff"><div class="ttname"><a href="namespaceripple.html#afe21c8454670d46fb93751a5edffed46a53a64dd14cce4cae9e2f063ad33faaff">ripple::temBAD_SEQUENCE</a></div><div class="ttdeci">@ temBAD_SEQUENCE</div><div class="ttdef"><b>Definition:</b> <a href="TER_8h_source.html#l00099">TER.h:99</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_afe21c8454670d46fb93751a5edffed46a099c540ff97d54cf841bbe8fff2f3936"><div class="ttname"><a href="namespaceripple.html#afe21c8454670d46fb93751a5edffed46a099c540ff97d54cf841bbe8fff2f3936">ripple::temBAD_SRC_ACCOUNT</a></div><div class="ttdeci">@ temBAD_SRC_ACCOUNT</div><div class="ttdef"><b>Definition:</b> <a href="TER_8h_source.html#l00101">TER.h:101</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1Change_html_af1fdcb02736b88b81c504ac3722efadf"><div class="ttname"><a href="classripple_1_1Change.html#af1fdcb02736b88b81c504ac3722efadf">ripple::Change::doApply</a></div><div class="ttdeci">TER doApply() override</div><div class="ttdef"><b>Definition:</b> <a href="Change_8cpp_source.html#l00100">Change.cpp:100</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_a1932b552a7e76eba44a31bdcdd4a5315"><div class="ttname"><a href="namespaceripple.html#a1932b552a7e76eba44a31bdcdd4a5315">ripple::sfLedgerSequence</a></div><div class="ttdeci">const SF_U32 sfLedgerSequence(access, STI_UINT32, 6, "LedgerSequence")</div><div class="ttdef"><b>Definition:</b> <a href="SField_8h_source.html#l00358">SField.h:358</a></div></div>
|
|
<div class="ttc" id="aclassbeast_1_1Journal_html_a49b0713e65bb8e2c51b76fbf16252afe"><div class="ttname"><a href="classbeast_1_1Journal.html#a49b0713e65bb8e2c51b76fbf16252afe">beast::Journal::error</a></div><div class="ttdeci">Stream error() const</div><div class="ttdef"><b>Definition:</b> <a href="Journal_8h_source.html#l00333">Journal.h:333</a></div></div>
|
|
<div class="ttc" id="aclassbeast_1_1Journal_html_a87d6bd59020d94110027dcab3d9e3357"><div class="ttname"><a href="classbeast_1_1Journal.html#a87d6bd59020d94110027dcab3d9e3357">beast::Journal::info</a></div><div class="ttdeci">Stream info() const</div><div class="ttdef"><b>Definition:</b> <a href="Journal_8h_source.html#l00321">Journal.h:321</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_ac07aad796b465989ac66dd4702216fa3"><div class="ttname"><a href="namespaceripple.html#ac07aad796b465989ac66dd4702216fa3">ripple::sfReferenceFeeUnits</a></div><div class="ttdeci">const SF_U32 sfReferenceFeeUnits(access, STI_UINT32, 30, "ReferenceFeeUnits")</div><div class="ttdef"><b>Definition:</b> <a href="SField_8h_source.html#l00383">SField.h:383</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1STObject_html_af5aa57043ec772da30341e3c3b823d7f"><div class="ttname"><a href="classripple_1_1STObject.html#af5aa57043ec772da30341e3c3b823d7f">ripple::STObject::getFlags</a></div><div class="ttdeci">std::uint32_t getFlags() const</div><div class="ttdef"><b>Definition:</b> <a href="STObject_8cpp_source.html#l00454">STObject.cpp:454</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1STTx_html_a85013803638c7bd4c8cfa952b5445d30"><div class="ttname"><a href="classripple_1_1STTx.html#a85013803638c7bd4c8cfa952b5445d30">ripple::STTx::getSigningPubKey</a></div><div class="ttdeci">Blob getSigningPubKey() const</div><div class="ttdef"><b>Definition:</b> <a href="STTx_8h_source.html#l00111">STTx.h:111</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_afe21c8454670d46fb93751a5edffed46aecc18d207c14edd554462f82555e9d92"><div class="ttname"><a href="namespaceripple.html#afe21c8454670d46fb93751a5edffed46aecc18d207c14edd554462f82555e9d92">ripple::temBAD_SIGNATURE</a></div><div class="ttdeci">@ temBAD_SIGNATURE</div><div class="ttdef"><b>Definition:</b> <a href="TER_8h_source.html#l00100">TER.h:100</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1Rules_html_a7d7f2142bf5c4a4ddf9fba8eb6c2aebd"><div class="ttname"><a href="classripple_1_1Rules.html#a7d7f2142bf5c4a4ddf9fba8eb6c2aebd">ripple::Rules::enabled</a></div><div class="ttdeci">bool enabled(uint256 const &id) const</div><div class="ttdoc">Returns true if a feature is enabled.</div><div class="ttdef"><b>Definition:</b> <a href="ReadView_8cpp_source.html#l00103">ReadView.cpp:103</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#l00119">TER.h:119</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_a48e7bc26e67dbb8709698c89f67a9264a0c108e5d380e14099ad0299d5c0ee510"><div class="ttname"><a href="namespaceripple.html#a48e7bc26e67dbb8709698c89f67a9264a0c108e5d380e14099ad0299d5c0ee510">ripple::ttAMENDMENT</a></div><div class="ttdeci">@ ttAMENDMENT</div><div class="ttdef"><b>Definition:</b> <a href="TxFormats_8h_source.html#l00059">TxFormats.h:59</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_a75cb21d7f1df42f2fdc8efddb79b63f4a6c46c4df51fe2c0abff61e840c9bbc40"><div class="ttname"><a href="namespaceripple.html#a75cb21d7f1df42f2fdc8efddb79b63f4a6c46c4df51fe2c0abff61e840c9bbc40">ripple::tefFAILURE</a></div><div class="ttdeci">@ tefFAILURE</div><div class="ttdef"><b>Definition:</b> <a href="TER_8h_source.html#l00142">TER.h:142</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1AmendmentTable_html_ac9e23d71814bcf7c601f37e0b9323b1a"><div class="ttname"><a href="classripple_1_1AmendmentTable.html#ac9e23d71814bcf7c601f37e0b9323b1a">ripple::AmendmentTable::enable</a></div><div class="ttdeci">virtual bool enable(uint256 const &amendment)=0</div></div>
|
|
<div class="ttc" id="anamespaceripple_html_afe21c8454670d46fb93751a5edffed46a3210708be8e611097ad2ae1e1a1734fb"><div class="ttname"><a href="namespaceripple.html#afe21c8454670d46fb93751a5edffed46a3210708be8e611097ad2ae1e1a1734fb">ripple::temBAD_FEE</a></div><div class="ttdeci">@ temBAD_FEE</div><div class="ttdef"><b>Definition:</b> <a href="TER_8h_source.html#l00087">TER.h:87</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_acdd14356c421d93afd7b29eb4b4eaae4"><div class="ttname"><a href="namespaceripple.html#acdd14356c421d93afd7b29eb4b4eaae4">ripple::STHash256</a></div><div class="ttdeci">STBitString< 256 > STHash256</div><div class="ttdef"><b>Definition:</b> <a href="STBitString_8h_source.html#l00129">STBitString.h:129</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_a95389dfbdac38b12c6387ce8d7b869e3"><div class="ttname"><a href="namespaceripple.html#a95389dfbdac38b12c6387ce8d7b869e3">ripple::sfFee</a></div><div class="ttdeci">const SF_Amount sfFee(access, STI_AMOUNT, 8, "Fee")</div><div class="ttdef"><b>Definition:</b> <a href="SField_8h_source.html#l00447">SField.h:447</a></div></div>
|
|
<div class="ttc" id="astructripple_1_1PreclaimContext_html_a8e1240b39791cf309b9caaffe8e5d306"><div class="ttname"><a href="structripple_1_1PreclaimContext.html#a8e1240b39791cf309b9caaffe8e5d306">ripple::PreclaimContext::tx</a></div><div class="ttdeci">STTx const & tx</div><div class="ttdef"><b>Definition:</b> <a href="Transactor_8h_source.html#l00059">Transactor.h:59</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1STTx_html_a484ebc991c4b79d36d388f1ab143a9cb"><div class="ttname"><a href="classripple_1_1STTx.html#a484ebc991c4b79d36d388f1ab143a9cb">ripple::STTx::getSequence</a></div><div class="ttdeci">std::uint32_t getSequence() const</div><div class="ttdef"><b>Definition:</b> <a href="STTx_8h_source.html#l00117">STTx.h:117</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1STArray_html_a9a8e8e818ee5ba2536921d3e63cda98e"><div class="ttname"><a href="classripple_1_1STArray.html#a9a8e8e818ee5ba2536921d3e63cda98e">ripple::STArray::back</a></div><div class="ttdeci">STObject & back()</div><div class="ttdef"><b>Definition:</b> <a href="STArray_8h_source.html#l00083">STArray.h:83</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1Change_html_aaa019bb2d9d9f3192d8d7550b0915c25"><div class="ttname"><a href="classripple_1_1Change.html#aaa019bb2d9d9f3192d8d7550b0915c25">ripple::Change::preclaim</a></div><div class="ttdeci">static TER preclaim(PreclaimContext const &ctx)</div><div class="ttdef"><b>Definition:</b> <a href="Change_8cpp_source.html#l00078">Change.cpp:78</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1AmendmentTable_html_a5fce75b79a87e541918be639a28f3c87"><div class="ttname"><a href="classripple_1_1AmendmentTable.html#a5fce75b79a87e541918be639a28f3c87">ripple::AmendmentTable::isSupported</a></div><div class="ttdeci">virtual bool isSupported(uint256 const &amendment) const =0</div></div>
|
|
<div class="ttc" id="astructripple_1_1PreclaimContext_html"><div class="ttname"><a href="structripple_1_1PreclaimContext.html">ripple::PreclaimContext</a></div><div class="ttdoc">State information when determining if a tx is likely to claim a fee.</div><div class="ttdef"><b>Definition:</b> <a href="Transactor_8h_source.html#l00053">Transactor.h:53</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_a9408db78895ee49dc4a6b9fb4afd83ec"><div class="ttname"><a href="namespaceripple.html#a9408db78895ee49dc4a6b9fb4afd83ec">ripple::sfValidatorToReEnable</a></div><div class="ttdeci">const SF_Blob sfValidatorToReEnable(access, STI_VL, 21, "ValidatorToReEnable")</div><div class="ttdef"><b>Definition:</b> <a href="SField_8h_source.html#l00477">SField.h:477</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1Change_html_ad18fdff092829125147e99733b563767"><div class="ttname"><a href="classripple_1_1Change.html#ad18fdff092829125147e99733b563767">ripple::Change::applyAmendment</a></div><div class="ttdeci">TER applyAmendment()</div><div class="ttdef"><b>Definition:</b> <a href="Change_8cpp_source.html#l00124">Change.cpp:124</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1STObject_html_ad924902da7debaf286597d6da0ae26e9"><div class="ttname"><a href="classripple_1_1STObject.html#ad924902da7debaf286597d6da0ae26e9">ripple::STObject::emplace_back</a></div><div class="ttdeci">std::size_t emplace_back(Args &&... args)</div><div class="ttdef"><b>Definition:</b> <a href="STObject_8h_source.html#l00384">STObject.h:384</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1Change_html_afc28f33bba943d8b06805979060c49b0"><div class="ttname"><a href="classripple_1_1Change.html#afc28f33bba943d8b06805979060c49b0">ripple::Change::preflight</a></div><div class="ttdeci">static NotTEC preflight(PreflightContext const &ctx)</div><div class="ttdef"><b>Definition:</b> <a href="Change_8cpp_source.html#l00033">Change.cpp:33</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1STObject_html"><div class="ttname"><a href="classripple_1_1STObject.html">ripple::STObject</a></div><div class="ttdef"><b>Definition:</b> <a href="STObject_8h_source.html#l00051">STObject.h:51</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_a30b618e8944f06b6bec7ee4e4bc0662a"><div class="ttname"><a href="namespaceripple.html#a30b618e8944f06b6bec7ee4e4bc0662a">ripple::sfPublicKey</a></div><div class="ttdeci">const SF_Blob sfPublicKey(access, STI_VL, 1, "PublicKey")</div><div class="ttdef"><b>Definition:</b> <a href="SField_8h_source.html#l00457">SField.h:457</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1ApplyView_html_aa3c5b5cd9dca5f906be4b36640706e3c"><div class="ttname"><a href="classripple_1_1ApplyView.html#aa3c5b5cd9dca5f906be4b36640706e3c">ripple::ApplyView::insert</a></div><div class="ttdeci">virtual void insert(std::shared_ptr< SLE > const &sle)=0</div><div class="ttdoc">Insert a new state SLE.</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="RCLCensorshipDetector_8h_source.html#l00029">RCLCensorshipDetector.h:29</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1Transactor_html_a1ac5d16d7b21e8af9cc94d7af39a85d5"><div class="ttname"><a href="classripple_1_1Transactor.html#a1ac5d16d7b21e8af9cc94d7af39a85d5">ripple::Transactor::view</a></div><div class="ttdeci">ApplyView & view()</div><div class="ttdef"><b>Definition:</b> <a href="Transactor_8h_source.html#l00107">Transactor.h:107</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_afe21c8454670d46fb93751a5edffed46ac3482079467d517ea82aa9c8fa693d21"><div class="ttname"><a href="namespaceripple.html#afe21c8454670d46fb93751a5edffed46ac3482079467d517ea82aa9c8fa693d21">ripple::temDISABLED</a></div><div class="ttdeci">@ temDISABLED</div><div class="ttdef"><b>Definition:</b> <a href="TER_8h_source.html#l00109">TER.h:109</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1ReadView_html_ac284afc905c482953c35c61b459fd85b"><div class="ttname"><a href="classripple_1_1ReadView.html#ac284afc905c482953c35c61b459fd85b">ripple::ReadView::seq</a></div><div class="ttdeci">LedgerIndex seq() const</div><div class="ttdoc">Returns the sequence number of the base ledger.</div><div class="ttdef"><b>Definition:</b> <a href="ReadView_8h_source.html#l00256">ReadView.h:256</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_a7728fc7a6b58ab2649923ca61da8e2b6"><div class="ttname"><a href="namespaceripple.html#a7728fc7a6b58ab2649923ca61da8e2b6">ripple::sfReserveIncrement</a></div><div class="ttdeci">const SF_U32 sfReserveIncrement(access, STI_UINT32, 32, "ReserveIncrement")</div><div class="ttdef"><b>Definition:</b> <a href="SField_8h_source.html#l00385">SField.h:385</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1STTx_html_aad90c6ed8b77cc627bbef6ab2f96ec96"><div class="ttname"><a href="classripple_1_1STTx.html#aad90c6ed8b77cc627bbef6ab2f96ec96">ripple::STTx::getSignature</a></div><div class="ttdeci">Blob getSignature() const</div><div class="ttdef"><b>Definition:</b> <a href="STTx_8cpp_source.html#l00151">STTx.cpp:151</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_a75cb21d7f1df42f2fdc8efddb79b63f4ac01c14dcda25a99606dcd9a039bcaa70"><div class="ttname"><a href="namespaceripple.html#a75cb21d7f1df42f2fdc8efddb79b63f4ac01c14dcda25a99606dcd9a039bcaa70">ripple::tefALREADY</a></div><div class="ttdeci">@ tefALREADY</div><div class="ttdef"><b>Definition:</b> <a href="TER_8h_source.html#l00143">TER.h:143</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_afb8eb6b8a92d7cb7fe9e359677ab2532"><div class="ttname"><a href="namespaceripple.html#afb8eb6b8a92d7cb7fe9e359677ab2532">ripple::featureNegativeUNL</a></div><div class="ttdeci">const uint256 featureNegativeUNL</div><div class="ttdef"><b>Definition:</b> <a href="Feature_8cpp_source.html#l00188">Feature.cpp:188</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1STObject_html_aaf5d617701ac3afc4ad6a13862459692"><div class="ttname"><a href="classripple_1_1STObject.html#aaf5d617701ac3afc4ad6a13862459692">ripple::STObject::isFieldPresent</a></div><div class="ttdeci">bool isFieldPresent(SField const &field) const</div><div class="ttdef"><b>Definition:</b> <a href="STObject_8cpp_source.html#l00401">STObject.cpp:401</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_ad1ba5ab6bbe324c1cabd16b7ed667340"><div class="ttname"><a href="namespaceripple.html#ad1ba5ab6bbe324c1cabd16b7ed667340">ripple::sfCloseTime</a></div><div class="ttdeci">const SF_U32 sfCloseTime(access, STI_UINT32, 7, "CloseTime")</div><div class="ttdef"><b>Definition:</b> <a href="SField_8h_source.html#l00359">SField.h:359</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1STVector256_html"><div class="ttname"><a href="classripple_1_1STVector256.html">ripple::STVector256</a></div><div class="ttdef"><b>Definition:</b> <a href="STVector256_8h_source.html#l00029">STVector256.h:29</a></div></div>
|
|
<div class="ttc" id="aempty_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/container/vector/empty.html">std::vector::empty</a></div><div class="ttdeci">T empty(T... args)</div></div>
|
|
<div class="ttc" id="aclassripple_1_1Transactor_html_aef4ef0a89b5595b2a688b89e4ecef833"><div class="ttname"><a href="classripple_1_1Transactor.html#aef4ef0a89b5595b2a688b89e4ecef833">ripple::Transactor::ctx_</a></div><div class="ttdeci">ApplyContext & ctx_</div><div class="ttdef"><b>Definition:</b> <a href="Transactor_8h_source.html#l00089">Transactor.h:89</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1Transactor_html_a4164eb695aa99f3be286df6e98e3e1f9"><div class="ttname"><a href="classripple_1_1Transactor.html#a4164eb695aa99f3be286df6e98e3e1f9">ripple::Transactor::account_</a></div><div class="ttdeci">AccountID account_</div><div class="ttdef"><b>Definition:</b> <a href="Transactor_8h_source.html#l00092">Transactor.h:92</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_a48e7bc26e67dbb8709698c89f67a9264a2b1632b6f19b0e05c73086acb1731b48"><div class="ttname"><a href="namespaceripple.html#a48e7bc26e67dbb8709698c89f67a9264a2b1632b6f19b0e05c73086acb1731b48">ripple::ttUNL_MODIFY</a></div><div class="ttdeci">@ ttUNL_MODIFY</div><div class="ttdef"><b>Definition:</b> <a href="TxFormats_8h_source.html#l00061">TxFormats.h:61</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_1_1keylet_html_ac58ecac7b057504ea6c1706c0ee04623"><div class="ttname"><a href="namespaceripple_1_1keylet.html#ac58ecac7b057504ea6c1706c0ee04623">ripple::keylet::fees</a></div><div class="ttdeci">Keylet const & fees() noexcept</div><div class="ttdoc">The (fixed) index of the object containing the ledger fees.</div><div class="ttdef"><b>Definition:</b> <a href="Indexes_8cpp_source.html#l00159">Indexes.cpp:159</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_a4866a4e67ef4ee45e477e4a850fa3952"><div class="ttname"><a href="namespaceripple.html#a4866a4e67ef4ee45e477e4a850fa3952">ripple::sfValidatorToDisable</a></div><div class="ttdeci">const SF_Blob sfValidatorToDisable(access, STI_VL, 20, "ValidatorToDisable")</div><div class="ttdef"><b>Definition:</b> <a href="SField_8h_source.html#l00476">SField.h:476</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_a86e358ce3f06ff049af13c2342791cf8"><div class="ttname"><a href="namespaceripple.html#a86e358ce3f06ff049af13c2342791cf8">ripple::strHex</a></div><div class="ttdeci">std::string strHex(FwdIt begin, FwdIt end)</div><div class="ttdef"><b>Definition:</b> <a href="strHex_8h_source.html#l00067">strHex.h:67</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_a9e03c8b33593df82d17427a8771e3106"><div class="ttname"><a href="namespaceripple.html#a9e03c8b33593df82d17427a8771e3106">ripple::sfAmendments</a></div><div class="ttdeci">const SF_Vec256 sfAmendments(access, STI_VECTOR256, 3, "Amendments")</div><div class="ttdef"><b>Definition:</b> <a href="SField_8h_source.html#l00495">SField.h:495</a></div></div>
|
|
<div class="ttc" id="astructripple_1_1PreflightContext_html_af202c00e509cfbb1df4fe69f4d6d6560"><div class="ttname"><a href="structripple_1_1PreflightContext.html#af202c00e509cfbb1df4fe69f4d6d6560">ripple::PreflightContext::tx</a></div><div class="ttdeci">STTx const & tx</div><div class="ttdef"><b>Definition:</b> <a href="Transactor_8h_source.html#l00036">Transactor.h:36</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1STObject_html_a55d1b6946f96a770f3b2195eb5a5a943"><div class="ttname"><a href="classripple_1_1STObject.html#a55d1b6946f96a770f3b2195eb5a5a943">ripple::STObject::getFieldU32</a></div><div class="ttdeci">std::uint32_t getFieldU32(SField const &field) const</div><div class="ttdef"><b>Definition:</b> <a href="STObject_8cpp_source.html#l00532">STObject.cpp:532</a></div></div>
|
|
<div class="ttc" id="astructripple_1_1PreflightContext_html"><div class="ttname"><a href="structripple_1_1PreflightContext.html">ripple::PreflightContext</a></div><div class="ttdoc">State information when preflighting a tx.</div><div class="ttdef"><b>Definition:</b> <a href="Transactor_8h_source.html#l00032">Transactor.h:32</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_ae1860b879bd20588ab7b31546e4441a1"><div class="ttname"><a href="namespaceripple.html#ae1860b879bd20588ab7b31546e4441a1">ripple::sfBaseFee</a></div><div class="ttdeci">const SF_U64 sfBaseFee(access, STI_UINT64, 5, "BaseFee")</div><div class="ttdef"><b>Definition:</b> <a href="SField_8h_source.html#l00399">SField.h:399</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_1_1keylet_html_a53590de263224dde45f4856da2852319"><div class="ttname"><a href="namespaceripple_1_1keylet.html#a53590de263224dde45f4856da2852319">ripple::keylet::negativeUNL</a></div><div class="ttdeci">Keylet const & negativeUNL() noexcept</div><div class="ttdoc">The (fixed) index of the object containing the ledger negativeUNL.</div><div class="ttdef"><b>Definition:</b> <a href="Indexes_8cpp_source.html#l00167">Indexes.cpp:167</a></div></div>
|
|
<div class="ttc" id="astructripple_1_1PreflightContext_html_af305cba8e0b5dd06e61d2dc6ac74c1a8"><div class="ttname"><a href="structripple_1_1PreflightContext.html#af305cba8e0b5dd06e61d2dc6ac74c1a8">ripple::PreflightContext::rules</a></div><div class="ttdeci">const Rules rules</div><div class="ttdef"><b>Definition:</b> <a href="Transactor_8h_source.html#l00037">Transactor.h:37</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1Change_html_a679b7947204889ec797a02e9574392e1"><div class="ttname"><a href="classripple_1_1Change.html#a679b7947204889ec797a02e9574392e1">ripple::Change::applyFee</a></div><div class="ttdeci">TER applyFee()</div><div class="ttdef"><b>Definition:</b> <a href="Change_8cpp_source.html#l00220">Change.cpp:220</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1ReadView_html_a8dc63ee1e4ae7b2f96823e146c53d03e"><div class="ttname"><a href="classripple_1_1ReadView.html#a8dc63ee1e4ae7b2f96823e146c53d03e">ripple::ReadView::open</a></div><div class="ttdeci">virtual bool open() const =0</div><div class="ttdoc">Returns true if this reflects an open ledger.</div></div>
|
|
<div class="ttc" id="anamespaceripple_html_aabc7f150d5082c73116a1cd5962b434da28c7d8b3ed759d363503a05fcd59f151"><div class="ttname"><a href="namespaceripple.html#aabc7f150d5082c73116a1cd5962b434da28c7d8b3ed759d363503a05fcd59f151">ripple::tesSUCCESS</a></div><div class="ttdeci">@ tesSUCCESS</div><div class="ttdef"><b>Definition:</b> <a href="TER_8h_source.html#l00213">TER.h:213</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1STObject_html_a8e207109e646759f4927d90e4404893f"><div class="ttname"><a href="classripple_1_1STObject.html#a8e207109e646759f4927d90e4404893f">ripple::STObject::getFieldAmount</a></div><div class="ttdeci">STAmount const & getFieldAmount(SField const &field) const</div><div class="ttdef"><b>Definition:</b> <a href="STObject_8cpp_source.html#l00576">STObject.cpp:576</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_a79718944ee9814817f43065752c76b77"><div class="ttname"><a href="namespaceripple.html#a79718944ee9814817f43065752c76b77">ripple::sfPreviousTxnID</a></div><div class="ttdeci">const SF_U256 sfPreviousTxnID(access, STI_HASH256, 5, "PreviousTxnID", SField::sMD_DeleteFinal)</div><div class="ttdef"><b>Definition:</b> <a href="SField_8h_source.html#l00421">SField.h:421</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1ApplyContext_html_a8c8757b3b1f88baef47b31ed4e9682d0"><div class="ttname"><a href="classripple_1_1ApplyContext.html#a8c8757b3b1f88baef47b31ed4e9682d0">ripple::ApplyContext::tx</a></div><div class="ttdeci">STTx const & tx</div><div class="ttdef"><b>Definition:</b> <a href="ApplyContext_8h_source.html#l00048">ApplyContext.h:48</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_afe21c8454670d46fb93751a5edffed46a76453a8d513e20754ca7cff63d7546b8"><div class="ttname"><a href="namespaceripple.html#afe21c8454670d46fb93751a5edffed46a76453a8d513e20754ca7cff63d7546b8">ripple::temINVALID</a></div><div class="ttdeci">@ temINVALID</div><div class="ttdef"><b>Definition:</b> <a href="TER_8h_source.html#l00105">TER.h:105</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_af99ba2263d2a1e29207c40a35fc9f6b3"><div class="ttname"><a href="namespaceripple.html#af99ba2263d2a1e29207c40a35fc9f6b3">ripple::NotTEC</a></div><div class="ttdeci">TERSubset< CanCvtToNotTEC > NotTEC</div><div class="ttdef"><b>Definition:</b> <a href="TER_8h_source.html#l00507">TER.h:507</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1STObject_html_af89b6c7fd94c998549037d0c44a068a1"><div class="ttname"><a href="classripple_1_1STObject.html#af89b6c7fd94c998549037d0c44a068a1">ripple::STObject::getFieldH256</a></div><div class="ttdeci">uint256 getFieldH256(SField const &field) const</div><div class="ttdef"><b>Definition:</b> <a href="STObject_8cpp_source.html#l00556">STObject.cpp:556</a></div></div>
|
|
<!-- start footer part -->
|
|
<hr class="footer"/><address class="footer"><small>
|
|
Generated by  <a href="http://www.doxygen.org/index.html">
|
|
<img class="footer" src="doxygen.png" alt="doxygen"/>
|
|
</a> 1.8.17
|
|
</small></address>
|
|
</body>
|
|
</html>
|