mirror of
https://github.com/LBRYFoundation/lbcwallet.git
synced 2025-08-27 07:23:25 +00:00
Reduce numQueryThreads to 20 and re-enable testRandomBlocks. Works!
This commit is contained in:
parent
7c23cf13b3
commit
59f3db7a1b
1 changed files with 4 additions and 5 deletions
|
@ -45,7 +45,7 @@ var (
|
||||||
// TODO: Make this a benchmark instead.
|
// TODO: Make this a benchmark instead.
|
||||||
// TODO: Implement load limiting for both outgoing and incoming
|
// TODO: Implement load limiting for both outgoing and incoming
|
||||||
// messages.
|
// messages.
|
||||||
numQueryThreads = 50
|
numQueryThreads = 20
|
||||||
queryOptions = []spvchain.QueryOption{
|
queryOptions = []spvchain.QueryOption{
|
||||||
//spvchain.NumRetries(5),
|
//spvchain.NumRetries(5),
|
||||||
}
|
}
|
||||||
|
@ -343,12 +343,11 @@ func TestSetup(t *testing.T) {
|
||||||
|
|
||||||
// Test that we can get blocks and cfilters via P2P and decide which are
|
// Test that we can get blocks and cfilters via P2P and decide which are
|
||||||
// valid and which aren't.
|
// valid and which aren't.
|
||||||
// TODO: This test is disabled until I factor it out into a benchmark.
|
// TODO: Split this out into a benchmark.
|
||||||
// Otherwise, it takes too long.
|
err = testRandomBlocks(t, svc, h1)
|
||||||
/*err = testRandomBlocks(t, svc, h1)
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatalf("Testing blocks and cfilters failed: %s", err)
|
t.Fatalf("Testing blocks and cfilters failed: %s", err)
|
||||||
}*/
|
}
|
||||||
|
|
||||||
// Generate an address and send it some coins on the h1 chain. We use
|
// Generate an address and send it some coins on the h1 chain. We use
|
||||||
// this to test rescans and notifications.
|
// this to test rescans and notifications.
|
||||||
|
|
Loading…
Add table
Reference in a new issue