Files
rippled/include/xrpl/resource/Fees.h
Ayaz Salikhov 9859e5ceda Merge remote-tracking branch 'upstream/release/3.3.x' into mathbunnyru/merge-3.3.0-to-develop
* upstream/release/3.3.x: (41 commits)
  chore: Bump version to 3.3.0
  chore: Bump version to 3.3.0-rc7
  fix: Increase manifest protocol message size cap and fix manifests relay
  fix: Cap untrusted manifests per message and drop oversized ones
  chore: Bump version to 3.2.1
  chore: Bump version to 3.2.1-rc1
  fix: Cap untrusted manifests per message and drop oversized ones
  fix: Reject oversized validator manifest before decoding
  fix: Reduce untrusted manifest cache cap to 100
  fix: Bound untrusted manifest cache
  chore: Bump version to 3.3.0-rc6
  feat: Package validator-keys inside rippled
  chore: Bump version to 3.3.0-rc5
  fix: Switch SponsorshipSet to use a delta for sfFeeAmount
  fix: Re-revert "fix: Set request size limits and differential pricing for get-object-by-hash calls"
  chore: Bump version to 3.3.0-rc4
  fix: Revert "fix: Set request size limits and differential pricing for get-object-by-hash calls"
  chore: Bump version to 3.3.0-rc3
  fix: Reduce untrusted manifest cache cap to 100
  fix: Revert "fix: Reject oversized SHAMap nodes in gotStaleData and fetch-pack path"
  ...
2026-08-07 16:00:25 +01:00

36 lines
1.5 KiB
C++

#pragma once
#include <xrpl/resource/Charge.h>
namespace xrpl::resource {
/**
* Schedule of fees charged for imposing load on the server.
*/
/** @{ */
extern Charge const kFeeMalformedRequest; // A request that we can immediately tell is invalid.
extern Charge const kFeeRequestNoReply; // A request that we cannot satisfy.
extern Charge const kFeeInvalidSignature; // An object whose signature we had to check that failed.
extern Charge const kFeeUselessData; // Data we have no use for.
extern Charge const kFeeInvalidData; // Data we have to verify before rejecting.
extern Charge const kFeeMalformedData; // Data that no honest peer would send.
// RPC loads
extern Charge const kFeeMalformedRpc; // An RPC request that we can immediately tell is invalid.
extern Charge const kFeeReferenceRpc; // A default "reference" unspecified load.
extern Charge const kFeeExceptionRpc; // RPC load that causes an exception.
extern Charge const kFeeMediumBurdenRpc; // A somewhat burdensome RPC load.
extern Charge const kFeeHeavyBurdenRpc; // A very burdensome RPC load.
// Peer loads
extern Charge const kFeeTrivialPeer; // Requires no reply.
extern Charge const kFeeModerateBurdenPeer; // Requires some work.
extern Charge const kFeeHeavyBurdenPeer; // Extensive work.
// Administrative
extern Charge const kFeeWarning; // The cost of receiving a warning.
extern Charge const kFeeDrop; // The cost of being dropped for excess load.
/** @} */
} // namespace xrpl::resource