les, light: reduce les testing stress (#17867)

This commit is contained in:
gary rong 2018-10-08 21:52:23 +08:00 committed by Péter Szilágyi
parent 53634f1e04
commit c5d34fc94e
2 changed files with 15 additions and 15 deletions

View File

@ -87,7 +87,7 @@ const (
testDistBufLimit = 10000000 testDistBufLimit = 10000000
testDistMaxCost = 1000000 testDistMaxCost = 1000000
testDistPeerCount = 5 testDistPeerCount = 5
testDistReqCount = 50000 testDistReqCount = 5000
testDistMaxResendCount = 3 testDistMaxResendCount = 3
) )

View File

@ -84,23 +84,23 @@ var (
} }
// TestServerIndexerConfig wraps a set of configs as a test indexer config for server side. // TestServerIndexerConfig wraps a set of configs as a test indexer config for server side.
TestServerIndexerConfig = &IndexerConfig{ TestServerIndexerConfig = &IndexerConfig{
ChtSize: 256, ChtSize: 64,
PairChtSize: 2048, PairChtSize: 512,
ChtConfirms: 16, ChtConfirms: 4,
BloomSize: 256, BloomSize: 64,
BloomConfirms: 16, BloomConfirms: 4,
BloomTrieSize: 2048, BloomTrieSize: 512,
BloomTrieConfirms: 16, BloomTrieConfirms: 4,
} }
// TestClientIndexerConfig wraps a set of configs as a test indexer config for client side. // TestClientIndexerConfig wraps a set of configs as a test indexer config for client side.
TestClientIndexerConfig = &IndexerConfig{ TestClientIndexerConfig = &IndexerConfig{
ChtSize: 2048, ChtSize: 512,
PairChtSize: 256, PairChtSize: 64,
ChtConfirms: 128, ChtConfirms: 32,
BloomSize: 2048, BloomSize: 512,
BloomConfirms: 128, BloomConfirms: 32,
BloomTrieSize: 2048, BloomTrieSize: 512,
BloomTrieConfirms: 128, BloomTrieConfirms: 32,
} }
) )