go-ethereum/common/leak/ignore_list.go
marcello33 67878747b3
mardizzone/POS-1605: go and deps upgrade (#929)
* dev: chg: pos-1605: fix govulns by bumping golang version and replacing mongodb version

* dev: chg: pos-1605: update some dependencies to solve dependabot vulns

* dev: chg: update linter for compatibility with upgraded go version

* dev: chg: update go version in golangci lintere

* dev: chg: update go version in ci workflow, docker and travis

* dev: chg: change govulncheck version to a stable fixed one

* dev: chg: fix govulncheck version

* dev: chg: remove vulncheck version

* dev: chg: adapt tests based on go-ethereum for go version upgrade

* dev: chg: use explicit go version for templum action

* dev: chg: fix lint

* dev: chg: fix lint

* dev: chg: 1.20.x explicitly in packager

* dev: chg: ignore some additional leak to be fixed

* dev: chg: ignore some additional leak to be fixed

* dev: chg: fix lint
2023-07-19 11:57:45 +05:30

27 lines
1.8 KiB
Go

package leak
import "go.uber.org/goleak"
func IgnoreList() []goleak.Option {
return []goleak.Option{
// a list of goroutne leaks that hard to fix due to external dependencies or too big refactoring needed
goleak.IgnoreTopFunction("github.com/ethereum/go-ethereum/core.(*txSenderCacher).cache"),
goleak.IgnoreTopFunction("github.com/rjeczalik/notify.(*recursiveTree).dispatch"),
goleak.IgnoreTopFunction("github.com/rjeczalik/notify.(*recursiveTree).internal"),
goleak.IgnoreTopFunction("github.com/rjeczalik/notify.(*nonrecursiveTree).dispatch"),
goleak.IgnoreTopFunction("github.com/rjeczalik/notify.(*nonrecursiveTree).internal"),
goleak.IgnoreTopFunction("github.com/rjeczalik/notify._Cfunc_CFRunLoopRun"),
// todo: this leaks should be fixed
goleak.IgnoreTopFunction("github.com/ethereum/go-ethereum/accounts/abi/bind/backends.nullSubscription.func1"),
goleak.IgnoreTopFunction("github.com/ethereum/go-ethereum/accounts/abi/bind/backends.(*filterBackend).SubscribeNewTxsEvent.func1"),
goleak.IgnoreTopFunction("github.com/ethereum/go-ethereum/accounts/abi/bind/backends.(*filterBackend).SubscribePendingLogsEvent.func1"),
goleak.IgnoreTopFunction("github.com/ethereum/go-ethereum/consensus/ethash.(*remoteSealer).loop"),
goleak.IgnoreTopFunction("github.com/ethereum/go-ethereum/core.(*BlockChain).updateFutureBlocks"),
goleak.IgnoreTopFunction("github.com/ethereum/go-ethereum/core/state/snapshot.(*diskLayer).generate"),
goleak.IgnoreTopFunction("github.com/ethereum/go-ethereum/eth/filters.(*EventSystem).eventLoop"),
goleak.IgnoreTopFunction("github.com/ethereum/go-ethereum/event.NewSubscription.func1"),
goleak.IgnoreTopFunction("github.com/ethereum/go-ethereum/event.NewSubscription"),
goleak.IgnoreTopFunction("github.com/ethereum/go-ethereum/metrics.(*meterArbiter).tick"),
}
}