les, light: reduce les testing stress

This commit is contained in:
rjl493456442 2018-10-08 18:22:17 +08:00
parent f95811e65b
commit a9099359e4
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,
} }
) )