rippled
Loading...
Searching...
No Matches
Fees.cpp
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#include <xrpl/resource/Fees.h>
21
22namespace ripple {
23namespace Resource {
24
25Charge const feeInvalidRequest(100, "malformed request");
26Charge const feeRequestNoReply(10, "unsatisfiable request");
27Charge const feeInvalidSignature(1000, "invalid signature");
28Charge const feeUnwantedData(150, "useless data");
29Charge const feeBadData(200, "invalid data");
30
31Charge const feeInvalidRPC(100, "malformed RPC");
32Charge const feeReferenceRPC(20, "reference RPC");
33Charge const feeExceptionRPC(100, "exceptioned RPC");
34Charge const feeMediumBurdenRPC(400, "medium RPC");
35Charge const feeHighBurdenRPC(3000, "heavy RPC");
36
37Charge const feeLightPeer(1, "trivial peer request");
38Charge const feeMediumBurdenPeer(250, "moderate peer request");
39Charge const feeHighBurdenPeer(2000, "heavy peer request");
40
41Charge const feeWarning(2000, "received warning");
42Charge const feeDrop(3000, "dropped");
43
44} // namespace Resource
45} // namespace ripple
A consumption charge.
Definition: Charge.h:31
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