rpc: fix implemented filter methods being forbidden (#5801)

Addresses issue #4833

Removes implemented methods from the forbidden method list. The
forbidden list seems to have been created as a bugfix before the filters
methods were implemented. Now that the filter methods are implemented,
these entries are causing unexpected behaviour.
This commit is contained in:
dtan3847 2022-10-25 19:08:09 -07:00 committed by GitHub
parent 29ff8daa92
commit 42aa80e059
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,11 +37,5 @@ func (a *AllowList) MarshalJSON() ([]byte, error) {
type ForbiddenList map[string]struct{} type ForbiddenList map[string]struct{}
func newForbiddenList() ForbiddenList { func newForbiddenList() ForbiddenList {
return ForbiddenList{ return ForbiddenList{}
"eth_newFilter": struct{}{},
"eth_newPendingTransactionFilter": struct{}{},
"eth_newBlockFilter": struct{}{},
"eth_getFilterChanges": struct{}{},
"eth_uninstallFilter": struct{}{},
}
} }