rippled
Loading...
Searching...
No Matches
resource/Fees.h
1//------------------------------------------------------------------------------
2/*
3 This file is part of rippled: https://github.com/ripple/rippled
4 Copyright (c) 2012, 2013 Ripple Labs Inc.
5
6 Permission to use, copy, modify, and/or distribute this software for any
7 purpose with or without fee is hereby granted, provided that the above
8 copyright notice and this permission notice appear in all copies.
9
10 THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11 WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12 MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13 ANY SPECIAL , DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14 WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15 ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16 OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17*/
18//==============================================================================
19
20#ifndef RIPPLE_RESOURCE_FEES_H_INCLUDED
21#define RIPPLE_RESOURCE_FEES_H_INCLUDED
22
23#include <xrpl/resource/Charge.h>
24
25namespace ripple {
26namespace Resource {
27
28// clang-format off
31extern Charge const feeInvalidRequest; // A request that we can immediately
32 // tell is invalid
33extern Charge const feeRequestNoReply; // A request that we cannot satisfy
34extern Charge const feeInvalidSignature; // An object whose signature we had
35 // to check and it failed
36extern Charge const feeUnwantedData; // Data we have no use for
37extern Charge const feeBadData; // Data we have to verify before
38 // rejecting
39
40// RPC loads
41extern Charge const feeInvalidRPC; // An RPC request that we can
42 // immediately tell is invalid.
43extern Charge const feeReferenceRPC; // A default "reference" unspecified
44 // load
45extern Charge const feeExceptionRPC; // RPC load that causes an exception
46extern Charge const feeMediumBurdenRPC; // A somewhat burdensome RPC load
47extern Charge const feeHighBurdenRPC; // A very burdensome RPC load
48
49// Peer loads
50extern Charge const feeLightPeer; // Requires no reply
51extern Charge const feeMediumBurdenPeer; // Requires some work
52extern Charge const feeHighBurdenPeer; // Extensive work
53
54// Administrative
55extern Charge const feeWarning; // The cost of receiving a warning
56extern Charge const feeDrop; // The cost of being dropped for
57 // excess load
59// clang-format on
60
61} // namespace Resource
62} // namespace ripple
63
64#endif
Charge const feeInvalidRPC
Charge const feeInvalidRequest
Schedule of fees charged for imposing load on the server.
Charge const feeUnwantedData
Charge const feeMediumBurdenRPC
Charge const feeReferenceRPC
Charge const feeExceptionRPC
Charge const feeRequestNoReply
Charge const feeLightPeer
Charge const feeHighBurdenRPC
Charge const feeMediumBurdenPeer
Charge const feeWarning
Charge const feeBadData
Charge const feeHighBurdenPeer
Charge const feeInvalidSignature
Charge const feeDrop
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition: algorithm.h:26