chainntnfs+routing/chainview: reduce neutrino.WaitForMoreCFHeaders value
This commit reduces the neutrino.WaitForMoreCFHeaders parameter when instantiating a neutrino instance as a lower value will allow the tests to complete more quickly.
This commit is contained in:
2 files changed
+2
-2
No files matched your search
@@ -992,7 +992,7 @@ func TestInterfaces(t *testing.T) {
|
||||
ChainParams: *netParams,
|
||||
ConnectPeers: []string{p2pAddr},
|
||||
}
|
||||
neutrino.WaitForMoreCFHeaders = time.Second * 1
|
||||
neutrino.WaitForMoreCFHeaders = 250 * time.Millisecond
|
||||
spvNode, err := neutrino.NewChainService(spvConfig)
|
||||
if err != nil {
|
||||
t.Fatalf("unable to create neutrino: %v", err)
|
||||
|
||||
@@ -497,7 +497,7 @@ var interfaceImpls = []struct {
|
||||
ConnectPeers: []string{p2pAddr},
|
||||
}
|
||||
|
||||
neutrino.WaitForMoreCFHeaders = time.Second * 1
|
||||
neutrino.WaitForMoreCFHeaders = 250 * time.Millisecond
|
||||
spvNode, err := neutrino.NewChainService(spvConfig)
|
||||
if err != nil {
|
||||
return nil, nil, err
|
||||
|
||||
Reference in new issue
Block a user