p2p: add eviction metrics and cleanup dialing error handling (backport #8819) (#8820)

This commit is contained in:
mergify[bot]
2022-06-24 10:42:58 -04:00
committed by GitHub
parent 2df4c2b19d
commit 826f224c2d
6 changed files with 91 additions and 127 deletions
+1 -1
View File
@@ -111,7 +111,7 @@ func waitForHeight(ctx context.Context, testnet *e2e.Testnet, height int64) (*ty
if len(clients) == 0 {
return nil, nil, errors.New("unable to connect to any network nodes")
}
if time.Since(lastIncrease) >= time.Minute {
if time.Since(lastIncrease) >= 90*time.Second {
if lastHeight == 0 {
return nil, nil, errors.New("chain stalled at unknown height (most likely upon starting)")
}