Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions client/asset/eth/multirpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ const (
receiptCacheExpiration = time.Hour
unconfirmedReceiptExpiration = time.Minute
tipCapSuggestionExpiration = time.Hour
brickedFailCount = 100
providerDelimiter = " "
defaultRequestTimeout = time.Second * 10
)
Expand Down Expand Up @@ -151,7 +150,7 @@ func (p *provider) setFailed() {
func (p *provider) failed() bool {
p.tip.Lock()
defer p.tip.Unlock()
return p.tip.failCount > brickedFailCount || time.Since(p.tip.failStamp) < failQuarantine
return time.Since(p.tip.failStamp) < failQuarantine
}

// bestHeader get the best known header from the provider, cached if available,
Expand Down