From 0442b3a683c9bdabd9b9736ffaef2f58e8dc97c4 Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Mon, 17 Mar 2014 19:32:13 -0700 Subject: [PATCH] Change resource costs. --- src/ripple/resource/impl/Fees.cpp | 16 ++++++++-------- src/ripple/resource/impl/Tuning.h | 4 ++-- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/ripple/resource/impl/Fees.cpp b/src/ripple/resource/impl/Fees.cpp index 166fd2fb8..a8891f916 100644 --- a/src/ripple/resource/impl/Fees.cpp +++ b/src/ripple/resource/impl/Fees.cpp @@ -31,19 +31,19 @@ Charge const feeInvalidRPC ( 10, "malformed RPC" ); Charge const feeReferenceRPC ( 2, "reference RPC" ); Charge const feeExceptionRPC ( 10, "exceptioned RPC" ); Charge const feeLightRPC ( 5, "light RPC" ); // DAVID: Check the cost -Charge const feeLowBurdenRPC ( 10, "low RPC" ); -Charge const feeMediumBurdenRPC ( 20, "medium RPC" ); -Charge const feeHighBurdenRPC ( 50, "heavy RPC" ); +Charge const feeLowBurdenRPC ( 20, "low RPC" ); +Charge const feeMediumBurdenRPC ( 40, "medium RPC" ); +Charge const feeHighBurdenRPC ( 300, "heavy RPC" ); Charge const feeNewTrustedNote ( 10, "trusted note" ); -Charge const feeNewValidTx ( 2, "valid tx" ); +Charge const feeNewValidTx ( 10, "valid tx" ); Charge const feeSatisfiedRequest ( 10, "needed data" ); -Charge const feeRequestedData ( 5, "costly request" ); -Charge const feeCheapQuery ( 1, "trivial query" ); +Charge const feeRequestedData ( 50, "costly request" ); +Charge const feeCheapQuery ( 10, "trivial query" ); -Charge const feeWarning ( 10, "received warning" ); // DAVID: Check the cost -Charge const feeDrop ( 100, "dropped" ); // DAVID: Check the cost +Charge const feeWarning ( 200, "received warning" ); +Charge const feeDrop ( 300, "dropped" ); } } diff --git a/src/ripple/resource/impl/Tuning.h b/src/ripple/resource/impl/Tuning.h index 24a1b08e7..9b300be8f 100644 --- a/src/ripple/resource/impl/Tuning.h +++ b/src/ripple/resource/impl/Tuning.h @@ -27,10 +27,10 @@ namespace Resource { enum { // Balance at which a warning is issued - warningThreshold = 1000 + warningThreshold = 500 // Balance at which the consumer is disconnected - ,dropThreshold = 5000 + ,dropThreshold = 1500 // The number of seconds until an inactive table item is removed ,secondsUntilExpiration = 300