mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-28 23:15:52 +00:00
deploy: 023f5704d0
This commit is contained in:
@@ -100,46 +100,41 @@ $(function() {
|
||||
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="comment">// Various protocol and system specific constant globals.</span></div>
|
||||
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  </div>
|
||||
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="comment">/* The name of the system. */</span></div>
|
||||
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="keyword">static</span> <span class="keyword">inline</span></div>
|
||||
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <a class="codeRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> <span class="keyword">const</span>&</div>
|
||||
<div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="namespaceripple.html#aca32bc5eec87c90ce71880dbba08b93e"> 34</a></span> <a class="code" href="namespaceripple.html#aca32bc5eec87c90ce71880dbba08b93e">systemName</a> ()</div>
|
||||
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span> {</div>
|
||||
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  <span class="keyword">static</span> <a class="codeRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> <span class="keyword">const</span> name = <span class="stringliteral">"ripple"</span>;</div>
|
||||
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  <span class="keywordflow">return</span> name;</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>  </div>
|
||||
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span> constexpr</div>
|
||||
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span> XRPAmount</div>
|
||||
<div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="namespaceripple.html#a55a2a537e79363b71783d5f6eaca5abf"> 45</a></span> <a class="code" href="namespaceripple.html#a55a2a537e79363b71783d5f6eaca5abf">INITIAL_XRP</a>{100<span class="stringliteral">'000'</span>000<span class="stringliteral">'000 * DROPS_PER_XRP };</span></div>
|
||||
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span> <span class="stringliteral"></span> </div>
|
||||
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span> <span class="stringliteral">inline</span></div>
|
||||
<div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="namespaceripple.html#a2ad36218df31bca30cc7212166c77432"> 49</a></span> <span class="stringliteral">bool isLegalAmount (XRPAmount const& amount)</span></div>
|
||||
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span> <span class="stringliteral">{</span></div>
|
||||
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span> <span class="stringliteral"> return amount <= INITIAL_XRP;</span></div>
|
||||
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span> <span class="stringliteral">}</span></div>
|
||||
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span> <span class="stringliteral"></span> </div>
|
||||
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span> <span class="stringliteral">/* The currency code for the native currency. */</span></div>
|
||||
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span> <span class="stringliteral">static inline</span></div>
|
||||
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span> <span class="stringliteral">std::string const&</span></div>
|
||||
<div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="namespaceripple.html#a17931969e24fe7e94e61d6e50f7f5cb7"> 57</a></span> <span class="stringliteral">systemCurrencyCode ()</span></div>
|
||||
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span> <span class="stringliteral">{</span></div>
|
||||
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span> <span class="stringliteral"> static std::string const code = "XRP";</span></div>
|
||||
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span> <span class="stringliteral"> return code;</span></div>
|
||||
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span> <span class="stringliteral">}</span></div>
|
||||
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span> <span class="stringliteral"></span> </div>
|
||||
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span> <span class="stringliteral">static</span></div>
|
||||
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span> <span class="stringliteral">std::uint32_t constexpr</span></div>
|
||||
<div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="namespaceripple.html#a2c550f167665d94744b297523ff07de2"> 66</a></span> <span class="stringliteral">XRP_LEDGER_EARLIEST_SEQ {32570};</span></div>
|
||||
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span> <span class="stringliteral"></span> </div>
|
||||
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span> <span class="stringliteral">} // ripple</span></div>
|
||||
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span> <span class="stringliteral"></span> </div>
|
||||
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span> <span class="stringliteral">#endif</span></div>
|
||||
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="keyword">static</span> <span class="keyword">inline</span> <a class="codeRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> <span class="keyword">const</span>&</div>
|
||||
<div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="namespaceripple.html#aca32bc5eec87c90ce71880dbba08b93e"> 33</a></span> <a class="code" href="namespaceripple.html#aca32bc5eec87c90ce71880dbba08b93e">systemName</a>()</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">static</span> <a class="codeRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> <span class="keyword">const</span> name = <span class="stringliteral">"ripple"</span>;</div>
|
||||
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  <span class="keywordflow">return</span> name;</div>
|
||||
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span> }</div>
|
||||
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  </div>
|
||||
<div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="namespaceripple.html#a55a2a537e79363b71783d5f6eaca5abf"> 42</a></span> constexpr <a class="code" href="classripple_1_1XRPAmount.html">XRPAmount</a> <a class="code" href="namespaceripple.html#a55a2a537e79363b71783d5f6eaca5abf">INITIAL_XRP</a>{100<span class="stringliteral">'000'</span>000<span class="stringliteral">'000 * DROPS_PER_XRP};</span></div>
|
||||
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span> <span class="stringliteral"></span> </div>
|
||||
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span> <span class="stringliteral">inline bool</span></div>
|
||||
<div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="namespaceripple.html#a2ad36218df31bca30cc7212166c77432"> 46</a></span> <span class="stringliteral">isLegalAmount(XRPAmount const& amount)</span></div>
|
||||
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span> <span class="stringliteral">{</span></div>
|
||||
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span> <span class="stringliteral"> return amount <= INITIAL_XRP;</span></div>
|
||||
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span> <span class="stringliteral">}</span></div>
|
||||
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span> <span class="stringliteral"></span> </div>
|
||||
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span> <span class="stringliteral">/* The currency code for the native currency. */</span></div>
|
||||
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span> <span class="stringliteral">static inline std::string const&</span></div>
|
||||
<div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="namespaceripple.html#a17931969e24fe7e94e61d6e50f7f5cb7"> 53</a></span> <span class="stringliteral">systemCurrencyCode()</span></div>
|
||||
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span> <span class="stringliteral">{</span></div>
|
||||
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span> <span class="stringliteral"> static std::string const code = "XRP";</span></div>
|
||||
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span> <span class="stringliteral"> return code;</span></div>
|
||||
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span> <span class="stringliteral">}</span></div>
|
||||
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span> <span class="stringliteral"></span> </div>
|
||||
<div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="namespaceripple.html#a2c550f167665d94744b297523ff07de2"> 60</a></span> <span class="stringliteral">static std::uint32_t constexpr XRP_LEDGER_EARLIEST_SEQ{32570};</span></div>
|
||||
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span> <span class="stringliteral"></span> </div>
|
||||
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span> <span class="stringliteral">} // namespace ripple</span></div>
|
||||
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span> <span class="stringliteral"></span> </div>
|
||||
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span> <span class="stringliteral">#endif</span></div>
|
||||
</div><!-- fragment --></div><!-- contents -->
|
||||
<div class="ttc" id="abasic_string_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a></div><div class="ttdoc">STL class.</div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_a55a2a537e79363b71783d5f6eaca5abf"><div class="ttname"><a href="namespaceripple.html#a55a2a537e79363b71783d5f6eaca5abf">ripple::INITIAL_XRP</a></div><div class="ttdeci">constexpr XRPAmount INITIAL_XRP</div><div class="ttdoc">Configure the native currency.</div><div class="ttdef"><b>Definition:</b> <a href="SystemParameters_8h_source.html#l00045">SystemParameters.h:45</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_a55a2a537e79363b71783d5f6eaca5abf"><div class="ttname"><a href="namespaceripple.html#a55a2a537e79363b71783d5f6eaca5abf">ripple::INITIAL_XRP</a></div><div class="ttdeci">constexpr XRPAmount INITIAL_XRP</div><div class="ttdoc">Configure the native currency.</div><div class="ttdef"><b>Definition:</b> <a href="SystemParameters_8h_source.html#l00042">SystemParameters.h:42</a></div></div>
|
||||
<div class="ttc" id="acstdint_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/cstdint.html">cstdint</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html"><div class="ttname"><a href="namespaceripple.html">ripple</a></div><div class="ttdoc">Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.</div><div class="ttdef"><b>Definition:</b> <a href="RCLCensorshipDetector_8h_source.html#l00029">RCLCensorshipDetector.h:29</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_aca32bc5eec87c90ce71880dbba08b93e"><div class="ttname"><a href="namespaceripple.html#aca32bc5eec87c90ce71880dbba08b93e">ripple::systemName</a></div><div class="ttdeci">static std::string const & systemName()</div><div class="ttdef"><b>Definition:</b> <a href="SystemParameters_8h_source.html#l00034">SystemParameters.h:34</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_aca32bc5eec87c90ce71880dbba08b93e"><div class="ttname"><a href="namespaceripple.html#aca32bc5eec87c90ce71880dbba08b93e">ripple::systemName</a></div><div class="ttdeci">static std::string const & systemName()</div><div class="ttdef"><b>Definition:</b> <a href="SystemParameters_8h_source.html#l00033">SystemParameters.h:33</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1XRPAmount_html"><div class="ttname"><a href="classripple_1_1XRPAmount.html">ripple::XRPAmount</a></div><div class="ttdef"><b>Definition:</b> <a href="XRPAmount_8h_source.html#l00046">XRPAmount.h:46</a></div></div>
|
||||
<div class="ttc" id="astring_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/string.html">string</a></div></div>
|
||||
<!-- start footer part -->
|
||||
<hr class="footer"/><address class="footer"><small>
|
||||
|
||||
Reference in New Issue
Block a user