Skip to content

Commit

Permalink
Remove unused constants from resource/Fees.h (#4856)
Browse files Browse the repository at this point in the history
  • Loading branch information
scottschurr authored Jul 30, 2024
1 parent a39720e commit b9b75dd
Showing 1 changed file with 18 additions and 23 deletions.
41 changes: 18 additions & 23 deletions include/xrpl/resource/Fees.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,43 +25,38 @@
namespace ripple {
namespace Resource {

// clang-format off
/** Schedule of fees charged for imposing load on the server. */
/** @{ */
extern Charge const
feeInvalidRequest; // A request that we can immediately tell is invalid
extern Charge const feeInvalidRequest; // A request that we can immediately
// tell is invalid
extern Charge const feeRequestNoReply; // A request that we cannot satisfy
extern Charge const feeInvalidSignature; // An object whose signature we had to
// check and it failed
extern Charge const feeInvalidSignature; // An object whose signature we had
// to check and it failed
extern Charge const feeUnwantedData; // Data we have no use for
extern Charge const feeBadData; // Data we have to verify before rejecting
extern Charge const feeBadData; // Data we have to verify before
// rejecting

// RPC loads
extern Charge const
feeInvalidRPC; // An RPC request that we can immediately tell is invalid.
extern Charge const feeReferenceRPC; // A default "reference" unspecified load
extern Charge const feeExceptionRPC; // An RPC load that causes an exception
extern Charge const feeLightRPC; // A normal RPC command
extern Charge const feeLowBurdenRPC; // A slightly burdensome RPC load
extern Charge const feeMediumBurdenRPC; // A somewhat burdensome RPC load
extern Charge const feeHighBurdenRPC; // A very burdensome RPC load
extern Charge const feePathFindUpdate; // An update to an existing PF request
extern Charge const feeInvalidRPC; // An RPC request that we can
// immediately tell is invalid.
extern Charge const feeReferenceRPC; // A default "reference" unspecified
// load
extern Charge const feeExceptionRPC; // RPC load that causes an exception
extern Charge const feeMediumBurdenRPC; // A somewhat burdensome RPC load
extern Charge const feeHighBurdenRPC; // A very burdensome RPC load

// Peer loads
extern Charge const feeLightPeer; // Requires no reply
extern Charge const feeLowBurdenPeer; // Quick/cheap, slight reply
extern Charge const feeMediumBurdenPeer; // Requires some work
extern Charge const feeHighBurdenPeer; // Extensive work

// Good things
extern Charge const
feeNewTrustedNote; // A new transaction/validation/proposal we trust
extern Charge const feeNewValidTx; // A new, valid transaction
extern Charge const feeSatisfiedRequest; // Data we requested

// Administrative
extern Charge const feeWarning; // The cost of receiving a warning
extern Charge const feeDrop; // The cost of being dropped for excess load
extern Charge const feeWarning; // The cost of receiving a warning
extern Charge const feeDrop; // The cost of being dropped for
// excess load
/** @} */
// clang-format on

} // namespace Resource
} // namespace ripple
Expand Down

0 comments on commit b9b75dd

Please sign in to comment.