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

@ -252,7 +252,7 @@ func (s *LightEthereum) APIs() []rpc.API {
}, {
Namespace: "eth",
Version: "1.0",
Service: filters.NewPublicFilterAPI(s.ApiBackend, true),
Service: filters.NewPublicFilterAPI(s.ApiBackend, true, 5*time.Minute),
Public: true,
}, {
Namespace: "net",