mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Control transaction dispatch rate:
Do not dispatch a transaction received from a peer for
processing, if it has already been dispatched within the
past ten seconds.
Increase the number of transaction handlers that can be in
flight in the job queue and decrease the relative cost for
peers to share transaction and ledger data.
Additionally, make better use of resources by adjusting the
number of threads we initialize, by reverting commit
68b8ffdb63.
This commit is contained in:
committed by
Nikolaos D. Bougalis
parent
6dc79c23ed
commit
fbfb4bd74e
@@ -23,31 +23,24 @@
|
||||
namespace ripple {
|
||||
namespace Resource {
|
||||
|
||||
Charge const feeInvalidRequest ( 10, "malformed request" );
|
||||
Charge const feeRequestNoReply ( 1, "unsatisfiable request" );
|
||||
Charge const feeInvalidSignature ( 100, "invalid signature" );
|
||||
Charge const feeUnwantedData ( 15, "useless data" );
|
||||
Charge const feeBadData ( 20, "invalid data" );
|
||||
Charge const feeInvalidRequest ( 100, "malformed request" );
|
||||
Charge const feeRequestNoReply ( 10, "unsatisfiable request" );
|
||||
Charge const feeInvalidSignature ( 1000, "invalid signature" );
|
||||
Charge const feeUnwantedData ( 150, "useless data" );
|
||||
Charge const feeBadData ( 200, "invalid data" );
|
||||
|
||||
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 ( 20, "low RPC" );
|
||||
Charge const feeMediumBurdenRPC ( 40, "medium RPC" );
|
||||
Charge const feeHighBurdenRPC ( 300, "heavy RPC" );
|
||||
Charge const feeInvalidRPC ( 100, "malformed RPC" );
|
||||
Charge const feeReferenceRPC ( 20, "reference RPC" );
|
||||
Charge const feeExceptionRPC ( 100, "exceptioned RPC" );
|
||||
Charge const feeMediumBurdenRPC ( 400, "medium RPC" );
|
||||
Charge const feeHighBurdenRPC ( 3000, "heavy RPC" );
|
||||
|
||||
Charge const feeLightPeer (1, "trivial peer request" );
|
||||
Charge const feeLowBurdenPeer (2, "simple peer request" );
|
||||
Charge const feeMediumBurdenPeer (50, "moderate peer request" );
|
||||
Charge const feeHighBurdenPeer (250, "heavy peer request" );
|
||||
Charge const feeLightPeer ( 1, "trivial peer request" );
|
||||
Charge const feeMediumBurdenPeer ( 250, "moderate peer request" );
|
||||
Charge const feeHighBurdenPeer ( 2000, "heavy peer request" );
|
||||
|
||||
Charge const feeNewTrustedNote ( 10, "trusted note" );
|
||||
Charge const feeNewValidTx ( 10, "valid tx" );
|
||||
Charge const feeSatisfiedRequest ( 10, "needed data" );
|
||||
|
||||
Charge const feeWarning ( 200, "received warning" );
|
||||
Charge const feeDrop ( 300, "dropped" );
|
||||
Charge const feeWarning ( 2000, "received warning" );
|
||||
Charge const feeDrop ( 3000, "dropped" );
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -27,10 +27,10 @@ namespace Resource {
|
||||
enum
|
||||
{
|
||||
// Balance at which a warning is issued
|
||||
warningThreshold = 500
|
||||
warningThreshold = 5000
|
||||
|
||||
// Balance at which the consumer is disconnected
|
||||
,dropThreshold = 1500
|
||||
,dropThreshold = 15000
|
||||
|
||||
// The number of seconds until an inactive table item is removed
|
||||
,secondsUntilExpiration = 300
|
||||
@@ -40,7 +40,7 @@ enum
|
||||
,decayWindowSeconds = 32
|
||||
|
||||
// The minimum balance required in order to include a load source in gossip
|
||||
,minimumGossipBalance = 100
|
||||
,minimumGossipBalance = 1000
|
||||
|
||||
// Number of seconds until imported gossip expires
|
||||
,gossipExpirationSeconds = 30
|
||||
|
||||
Reference in New Issue
Block a user