diff --git a/acorus.yaml b/acorus.yaml index 43e4d50..e31732b 100644 --- a/acorus.yaml +++ b/acorus.yaml @@ -45,16 +45,25 @@ rpcs: # header_buffer_size: 20 # contracts: # event_contracts: - - rpc_url: 'https://testnet-rpc.zkfair.io' - chain_id: 43851 - start_block: 2377471 - l1_chain_id: 11155111 - is_mainnet: false - l1_pool_contract: "" - l2_pool_contract: "" - header_buffer_size: 20 - contracts: - event_contracts: +# - rpc_url: 'https://testnet-rpc.zkfair.io' +# chain_id: 43851 +# start_block: 2377471 +# l1_chain_id: 11155111 +# is_mainnet: false +# l1_pool_contract: "" +# l2_pool_contract: "" +# header_buffer_size: 20 +# contracts: +# event_contracts:- rpc_url: 'https://testnet-rpc.zkfair.io' +# chain_id: 43851 +# start_block: 2377471 +# l1_chain_id: 11155111 +# is_mainnet: false +# l1_pool_contract: "" +# l2_pool_contract: "" +# header_buffer_size: 20 +# contracts: +# event_contracts: # - rpc_url: '' # chain_id: 169 diff --git a/synchronizer/node/client.go b/synchronizer/node/client.go index 54cf668..1cfe13d 100644 --- a/synchronizer/node/client.go +++ b/synchronizer/node/client.go @@ -169,9 +169,9 @@ func (c *clnt) BlockHeadersByRange(startHeight, endHeight *big.Int, chainId uint ctxwt, cancel := context.WithTimeout(context.Background(), defaultRequestTimeout) defer cancel() - if chainId == uint(global_const.PolygonChainId) || - chainId == uint(global_const.PolygonSepoliaChainId) || - chainId == uint(global_const.ZkFairSepoliaChainId) || + //chainId == uint(global_const.PolygonChainId) || + // chainId == uint(global_const.PolygonSepoliaChainId) || + if chainId == uint(global_const.ZkFairSepoliaChainId) || chainId == uint(global_const.ZkFairChainId) { groupSize := 100 var wg sync.WaitGroup @@ -300,9 +300,9 @@ func (c *clnt) FilterLogs(query ethereum.FilterQuery, chainId uint) (Logs, error defer cancel() //resultHeader := new(types.Header) //resultLogs := make([]types.Log, 0) - if chainId == uint(global_const.PolygonChainId) || - chainId == uint(global_const.PolygonSepoliaChainId) || - chainId == uint(global_const.ZkFairSepoliaChainId) || + //chainId == uint(global_const.PolygonChainId) || + // chainId == uint(global_const.PolygonSepoliaChainId) || + if chainId == uint(global_const.ZkFairSepoliaChainId) || chainId == uint(global_const.ZkFairChainId) { batchElems[0].Error = c.rpc.CallContext(ctxwt, &header, batchElems[0].Method, toBlockNumArg(query.ToBlock), false)