mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-02-22 14:22:37 +01:00
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:
parent
95b431ff3f
commit
e5f3ee0fb6
2 changed files with 2 additions and 2 deletions
|
@ -992,7 +992,7 @@ func TestInterfaces(t *testing.T) {
|
||||||
ChainParams: *netParams,
|
ChainParams: *netParams,
|
||||||
ConnectPeers: []string{p2pAddr},
|
ConnectPeers: []string{p2pAddr},
|
||||||
}
|
}
|
||||||
neutrino.WaitForMoreCFHeaders = time.Second * 1
|
neutrino.WaitForMoreCFHeaders = 250 * time.Millisecond
|
||||||
spvNode, err := neutrino.NewChainService(spvConfig)
|
spvNode, err := neutrino.NewChainService(spvConfig)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatalf("unable to create neutrino: %v", err)
|
t.Fatalf("unable to create neutrino: %v", err)
|
||||||
|
|
|
@ -497,7 +497,7 @@ var interfaceImpls = []struct {
|
||||||
ConnectPeers: []string{p2pAddr},
|
ConnectPeers: []string{p2pAddr},
|
||||||
}
|
}
|
||||||
|
|
||||||
neutrino.WaitForMoreCFHeaders = time.Second * 1
|
neutrino.WaitForMoreCFHeaders = 250 * time.Millisecond
|
||||||
spvNode, err := neutrino.NewChainService(spvConfig)
|
spvNode, err := neutrino.NewChainService(spvConfig)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, nil, err
|
return nil, nil, err
|
||||||
|
|
Loading…
Add table
Reference in a new issue