Change resource costs.

This commit is contained in:
JoelKatz
2014-03-17 19:32:13 -07:00
committed by David Schwartz
parent bbc8a8fdc4
commit 0442b3a683
2 changed files with 10 additions and 10 deletions

View File

@@ -31,19 +31,19 @@ Charge const feeInvalidRPC ( 10, "malformed RPC" );
Charge const feeReferenceRPC ( 2, "reference RPC" ); Charge const feeReferenceRPC ( 2, "reference RPC" );
Charge const feeExceptionRPC ( 10, "exceptioned RPC" ); Charge const feeExceptionRPC ( 10, "exceptioned RPC" );
Charge const feeLightRPC ( 5, "light RPC" ); // DAVID: Check the cost Charge const feeLightRPC ( 5, "light RPC" ); // DAVID: Check the cost
Charge const feeLowBurdenRPC ( 10, "low RPC" ); Charge const feeLowBurdenRPC ( 20, "low RPC" );
Charge const feeMediumBurdenRPC ( 20, "medium RPC" ); Charge const feeMediumBurdenRPC ( 40, "medium RPC" );
Charge const feeHighBurdenRPC ( 50, "heavy RPC" ); Charge const feeHighBurdenRPC ( 300, "heavy RPC" );
Charge const feeNewTrustedNote ( 10, "trusted note" ); 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 feeSatisfiedRequest ( 10, "needed data" );
Charge const feeRequestedData ( 5, "costly request" ); Charge const feeRequestedData ( 50, "costly request" );
Charge const feeCheapQuery ( 1, "trivial query" ); Charge const feeCheapQuery ( 10, "trivial query" );
Charge const feeWarning ( 10, "received warning" ); // DAVID: Check the cost Charge const feeWarning ( 200, "received warning" );
Charge const feeDrop ( 100, "dropped" ); // DAVID: Check the cost Charge const feeDrop ( 300, "dropped" );
} }
} }

View File

@@ -27,10 +27,10 @@ namespace Resource {
enum enum
{ {
// Balance at which a warning is issued // Balance at which a warning is issued
warningThreshold = 1000 warningThreshold = 500
// Balance at which the consumer is disconnected // Balance at which the consumer is disconnected
,dropThreshold = 5000 ,dropThreshold = 1500
// The number of seconds until an inactive table item is removed // The number of seconds until an inactive table item is removed
,secondsUntilExpiration = 300 ,secondsUntilExpiration = 300