This commit is contained in:
manojsdoshi
2020-04-24 01:09:47 +00:00
parent 4ad595bf18
commit 430f6c0cf3
2864 changed files with 304301 additions and 292875 deletions

View File

@@ -96,40 +96,44 @@ $(function() {
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespaceripple.html">ripple</a> {</div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160;<span class="keyword">namespace </span>Resource {</div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160; </div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160;<span class="keyword">extern</span> Charge <span class="keyword">const</span> <a class="code" href="namespaceripple_1_1Resource.html#ae8affe62398aaca63fca0f78f22b8171">feeInvalidRequest</a>; <span class="comment">// A request that we can immediately tell is invalid</span></div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160;<span class="keyword">extern</span> Charge <span class="keyword">const</span> <a class="code" href="namespaceripple_1_1Resource.html#a412e34f8f551f06bdbc94d5c8ec4c147">feeRequestNoReply</a>; <span class="comment">// A request that we cannot satisfy</span></div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160;<span class="keyword">extern</span> Charge <span class="keyword">const</span> <a class="code" href="namespaceripple_1_1Resource.html#a12715003f294a76f23b8ebb88fce02ed">feeInvalidSignature</a>; <span class="comment">// An object whose signature we had to check and it failed</span></div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160;<span class="keyword">extern</span> Charge <span class="keyword">const</span> <a class="code" href="namespaceripple_1_1Resource.html#ae7e4c5bca8d571cc88e6e63636d9559d">feeUnwantedData</a>; <span class="comment">// Data we have no use for</span></div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160;<span class="keyword">extern</span> Charge <span class="keyword">const</span> <a class="code" href="namespaceripple_1_1Resource.html#a0051d327f5a6419ffb9b4a2dac7a81ed">feeBadData</a>; <span class="comment">// Data we have to verify before rejecting</span></div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160; </div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160;<span class="comment">// RPC loads</span></div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160;<span class="keyword">extern</span> Charge <span class="keyword">const</span> <a class="code" href="namespaceripple_1_1Resource.html#a084c003a60a658ed6b402f1348ad7780">feeInvalidRPC</a>; <span class="comment">// An RPC request that we can immediately tell is invalid.</span></div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160;<span class="keyword">extern</span> Charge <span class="keyword">const</span> <a class="code" href="namespaceripple_1_1Resource.html#a723772727ed9d9881f1d09ae537ec4b4">feeReferenceRPC</a>; <span class="comment">// A default &quot;reference&quot; unspecified load</span></div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160;<span class="keyword">extern</span> Charge <span class="keyword">const</span> <a class="code" href="namespaceripple_1_1Resource.html#a0ddfb6b30673de8f8e5ec49dc3a98068">feeExceptionRPC</a>; <span class="comment">// An RPC load that causes an exception</span></div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160;<span class="keyword">extern</span> Charge <span class="keyword">const</span> <a class="code" href="namespaceripple_1_1Resource.html#a581850faae146f87e2e5a62a18685a80">feeLightRPC</a>; <span class="comment">// A normal RPC command</span></div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160;<span class="keyword">extern</span> Charge <span class="keyword">const</span> <a class="code" href="namespaceripple_1_1Resource.html#a9d60f78d488f82da7f9b4f322f3747f7">feeLowBurdenRPC</a>; <span class="comment">// A slightly burdensome RPC load</span></div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160;<span class="keyword">extern</span> Charge <span class="keyword">const</span> <a class="code" href="namespaceripple_1_1Resource.html#abde9c8db0d3084fcdbedd459001f7463">feeMediumBurdenRPC</a>; <span class="comment">// A somewhat burdensome RPC load</span></div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160;<span class="keyword">extern</span> Charge <span class="keyword">const</span> <a class="code" href="namespaceripple_1_1Resource.html#ab71147798ec4f74a56d306fe061f161b">feeHighBurdenRPC</a>; <span class="comment">// A very burdensome RPC load</span></div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160;<span class="keyword">extern</span> Charge <span class="keyword">const</span> <a class="code" href="namespaceripple_1_1Resource.html#a24ab4c14097479e06c1c5136085ad2f3">feePathFindUpdate</a>; <span class="comment">// An update to an existing PF request</span></div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160; </div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160;<span class="comment">// Peer loads</span></div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160;<span class="keyword">extern</span> Charge <span class="keyword">const</span> <a class="code" href="namespaceripple_1_1Resource.html#ac014f20018c01cddd26ff8de69e1fcb9">feeLightPeer</a>; <span class="comment">// Requires no reply</span></div>
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160;<span class="keyword">extern</span> Charge <span class="keyword">const</span> <a class="code" href="namespaceripple_1_1Resource.html#ac712431c5cbe7e142c1e82839dd85b92">feeLowBurdenPeer</a>; <span class="comment">// Quick/cheap, slight reply</span></div>
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160;<span class="keyword">extern</span> Charge <span class="keyword">const</span> <a class="code" href="namespaceripple_1_1Resource.html#a1259e253b4a725a48fdc2e9ccc3b2375">feeMediumBurdenPeer</a>; <span class="comment">// Requires some work</span></div>
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160;<span class="keyword">extern</span> Charge <span class="keyword">const</span> <a class="code" href="namespaceripple_1_1Resource.html#a5e279a0d9cd9953d33fddc007650e42d">feeHighBurdenPeer</a>; <span class="comment">// Extensive work</span></div>
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160; </div>
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160;<span class="comment">// Good things</span></div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160;<span class="keyword">extern</span> Charge <span class="keyword">const</span> <a class="code" href="namespaceripple_1_1Resource.html#aec1bb9285f3af43136e9338c7c53eca8">feeNewTrustedNote</a>; <span class="comment">// A new transaction/validation/proposal we trust</span></div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160;<span class="keyword">extern</span> Charge <span class="keyword">const</span> <a class="code" href="namespaceripple_1_1Resource.html#ae991099c25243563b2fff890a0b51582">feeNewValidTx</a>; <span class="comment">// A new, valid transaction</span></div>
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160;<span class="keyword">extern</span> Charge <span class="keyword">const</span> <a class="code" href="namespaceripple_1_1Resource.html#a1671e374c12b408aa69f37f70210367f">feeSatisfiedRequest</a>; <span class="comment">// Data we requested</span></div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160; </div>
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160;<span class="comment">// Administrative</span></div>
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160;<span class="keyword">extern</span> Charge <span class="keyword">const</span> <a class="code" href="namespaceripple_1_1Resource.html#ac8c0e880877b307221674b02cf83bdab">feeWarning</a>; <span class="comment">// The cost of receiving a warning</span></div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160;<span class="keyword">extern</span> Charge <span class="keyword">const</span> <a class="code" href="namespaceripple_1_1Resource.html#ae25aa26a8408a08fe2edb4d1b48ead62">feeDrop</a>; <span class="comment">// The cost of being dropped for excess load</span></div>
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160;<span class="comment"></span>}</div>
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160;}</div>
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160; </div>
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160;<span class="keyword">extern</span> Charge <span class="keyword">const</span></div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160; <a class="code" href="namespaceripple_1_1Resource.html#ae8affe62398aaca63fca0f78f22b8171">feeInvalidRequest</a>; <span class="comment">// A request that we can immediately tell is invalid</span></div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160;<span class="keyword">extern</span> Charge <span class="keyword">const</span> <a class="code" href="namespaceripple_1_1Resource.html#a412e34f8f551f06bdbc94d5c8ec4c147">feeRequestNoReply</a>; <span class="comment">// A request that we cannot satisfy</span></div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160;<span class="keyword">extern</span> Charge <span class="keyword">const</span> <a class="code" href="namespaceripple_1_1Resource.html#a12715003f294a76f23b8ebb88fce02ed">feeInvalidSignature</a>; <span class="comment">// An object whose signature we had to</span></div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160; <span class="comment">// check and it failed</span></div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160;<span class="keyword">extern</span> Charge <span class="keyword">const</span> <a class="code" href="namespaceripple_1_1Resource.html#ae7e4c5bca8d571cc88e6e63636d9559d">feeUnwantedData</a>; <span class="comment">// Data we have no use for</span></div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160;<span class="keyword">extern</span> Charge <span class="keyword">const</span> <a class="code" href="namespaceripple_1_1Resource.html#a0051d327f5a6419ffb9b4a2dac7a81ed">feeBadData</a>; <span class="comment">// Data we have to verify before rejecting</span></div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160; </div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160;<span class="comment">// RPC loads</span></div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160;<span class="keyword">extern</span> Charge <span class="keyword">const</span></div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160; <a class="code" href="namespaceripple_1_1Resource.html#a084c003a60a658ed6b402f1348ad7780">feeInvalidRPC</a>; <span class="comment">// An RPC request that we can immediately tell is invalid.</span></div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160;<span class="keyword">extern</span> Charge <span class="keyword">const</span> <a class="code" href="namespaceripple_1_1Resource.html#a723772727ed9d9881f1d09ae537ec4b4">feeReferenceRPC</a>; <span class="comment">// A default &quot;reference&quot; unspecified load</span></div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160;<span class="keyword">extern</span> Charge <span class="keyword">const</span> <a class="code" href="namespaceripple_1_1Resource.html#a0ddfb6b30673de8f8e5ec49dc3a98068">feeExceptionRPC</a>; <span class="comment">// An RPC load that causes an exception</span></div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160;<span class="keyword">extern</span> Charge <span class="keyword">const</span> <a class="code" href="namespaceripple_1_1Resource.html#a581850faae146f87e2e5a62a18685a80">feeLightRPC</a>; <span class="comment">// A normal RPC command</span></div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160;<span class="keyword">extern</span> Charge <span class="keyword">const</span> <a class="code" href="namespaceripple_1_1Resource.html#a9d60f78d488f82da7f9b4f322f3747f7">feeLowBurdenRPC</a>; <span class="comment">// A slightly burdensome RPC load</span></div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160;<span class="keyword">extern</span> Charge <span class="keyword">const</span> <a class="code" href="namespaceripple_1_1Resource.html#abde9c8db0d3084fcdbedd459001f7463">feeMediumBurdenRPC</a>; <span class="comment">// A somewhat burdensome RPC load</span></div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160;<span class="keyword">extern</span> Charge <span class="keyword">const</span> <a class="code" href="namespaceripple_1_1Resource.html#ab71147798ec4f74a56d306fe061f161b">feeHighBurdenRPC</a>; <span class="comment">// A very burdensome RPC load</span></div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160;<span class="keyword">extern</span> Charge <span class="keyword">const</span> <a class="code" href="namespaceripple_1_1Resource.html#a24ab4c14097479e06c1c5136085ad2f3">feePathFindUpdate</a>; <span class="comment">// An update to an existing PF request</span></div>
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160; </div>
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160;<span class="comment">// Peer loads</span></div>
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160;<span class="keyword">extern</span> Charge <span class="keyword">const</span> <a class="code" href="namespaceripple_1_1Resource.html#ac014f20018c01cddd26ff8de69e1fcb9">feeLightPeer</a>; <span class="comment">// Requires no reply</span></div>
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160;<span class="keyword">extern</span> Charge <span class="keyword">const</span> <a class="code" href="namespaceripple_1_1Resource.html#ac712431c5cbe7e142c1e82839dd85b92">feeLowBurdenPeer</a>; <span class="comment">// Quick/cheap, slight reply</span></div>
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160;<span class="keyword">extern</span> Charge <span class="keyword">const</span> <a class="code" href="namespaceripple_1_1Resource.html#a1259e253b4a725a48fdc2e9ccc3b2375">feeMediumBurdenPeer</a>; <span class="comment">// Requires some work</span></div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160;<span class="keyword">extern</span> Charge <span class="keyword">const</span> <a class="code" href="namespaceripple_1_1Resource.html#a5e279a0d9cd9953d33fddc007650e42d">feeHighBurdenPeer</a>; <span class="comment">// Extensive work</span></div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160; </div>
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160;<span class="comment">// Good things</span></div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160;<span class="keyword">extern</span> Charge <span class="keyword">const</span></div>
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160; <a class="code" href="namespaceripple_1_1Resource.html#aec1bb9285f3af43136e9338c7c53eca8">feeNewTrustedNote</a>; <span class="comment">// A new transaction/validation/proposal we trust</span></div>
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160;<span class="keyword">extern</span> Charge <span class="keyword">const</span> <a class="code" href="namespaceripple_1_1Resource.html#ae991099c25243563b2fff890a0b51582">feeNewValidTx</a>; <span class="comment">// A new, valid transaction</span></div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160;<span class="keyword">extern</span> Charge <span class="keyword">const</span> <a class="code" href="namespaceripple_1_1Resource.html#a1671e374c12b408aa69f37f70210367f">feeSatisfiedRequest</a>; <span class="comment">// Data we requested</span></div>
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160; </div>
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160;<span class="comment">// Administrative</span></div>
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160;<span class="keyword">extern</span> Charge <span class="keyword">const</span> <a class="code" href="namespaceripple_1_1Resource.html#ac8c0e880877b307221674b02cf83bdab">feeWarning</a>; <span class="comment">// The cost of receiving a warning</span></div>
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160;<span class="keyword">extern</span> Charge <span class="keyword">const</span> <a class="code" href="namespaceripple_1_1Resource.html#ae25aa26a8408a08fe2edb4d1b48ead62">feeDrop</a>; <span class="comment">// The cost of being dropped for excess load</span></div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160;<span class="comment"></span>} <span class="comment">// namespace Resource</span></div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160;} <span class="comment">// namespace ripple</span></div>
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160; </div>
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160;<span class="preprocessor">#endif</span></div>
</div><!-- fragment --></div><!-- contents -->
<div class="ttc" id="anamespaceripple_1_1Resource_html_ae8affe62398aaca63fca0f78f22b8171"><div class="ttname"><a href="namespaceripple_1_1Resource.html#ae8affe62398aaca63fca0f78f22b8171">ripple::Resource::feeInvalidRequest</a></div><div class="ttdeci">const Charge feeInvalidRequest</div><div class="ttdoc">Schedule of fees charged for imposing load on the server.</div></div>
<div class="ttc" id="anamespaceripple_1_1Resource_html_a1259e253b4a725a48fdc2e9ccc3b2375"><div class="ttname"><a href="namespaceripple_1_1Resource.html#a1259e253b4a725a48fdc2e9ccc3b2375">ripple::Resource::feeMediumBurdenPeer</a></div><div class="ttdeci">const Charge feeMediumBurdenPeer</div></div>