eth/filters: fix potential deadlock in filter timeout loop (#22178)

This fixes #22131 and adds a test reproducing the issue.
This commit is contained in:
Sina Mahmoodi
2021-01-21 12:17:10 +01:00
committed by GitHub
parent ddadc3d273
commit c4307a9339
4 changed files with 101 additions and 22 deletions

View File

@ -335,7 +335,7 @@ func (s *Ethereum) APIs() []rpc.API {
}, {
Namespace: "eth",
Version: "1.0",
Service: filters.NewPublicFilterAPI(s.APIBackend, false),
Service: filters.NewPublicFilterAPI(s.APIBackend, false, 5*time.Minute),
Public: true,
}, {
Namespace: "admin",