From 42aa80e059fd215938a196a68b0ec68493bf304d Mon Sep 17 00:00:00 2001 From: dtan3847 Date: Tue, 25 Oct 2022 19:08:09 -0700 Subject: [PATCH] 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. --- rpc/allow_list.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/rpc/allow_list.go b/rpc/allow_list.go index 1e6ed84e3..ba0997768 100644 --- a/rpc/allow_list.go +++ b/rpc/allow_list.go @@ -37,11 +37,5 @@ func (a *AllowList) MarshalJSON() ([]byte, error) { type ForbiddenList map[string]struct{} func newForbiddenList() ForbiddenList { - return ForbiddenList{ - "eth_newFilter": struct{}{}, - "eth_newPendingTransactionFilter": struct{}{}, - "eth_newBlockFilter": struct{}{}, - "eth_getFilterChanges": struct{}{}, - "eth_uninstallFilter": struct{}{}, - } + return ForbiddenList{} }