diff --git a/CHANGELOG.md b/CHANGELOG.md index 26fbed22..2fa31cab 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,10 @@ -# Current +# 0.22.14 + +- Add `{'code': -32043, 'message': 'Requested data is not available'}` to RPC exceptions where we assume it's + an error we can either resume or switch to the next node provider. This error was encoureted with `eth_getLogs` + when using LlamaNodes. + +# 0.22.13 - Allow passing `request_kwargs` to [create_multi_provider_web3](https://web3-ethereum-defi.readthedocs.io/api/provider/_autosummary_provider/eth_defi.provider.multi_provider.create_multi_provider_web3.html#eth_defi.provider.multi_provider.create_multi_provider_web3) - When setting up [TunedWeb3Factory](https://web3-ethereum-defi.readthedocs.io/api/event_reader/_autosummary_enzyne/eth_defi.event_reader.web3factory.TunedWeb3Factory.html?highlight=tunedweb3factory) use `create_multi_provider_web3` to set up the connections diff --git a/eth_defi/middleware.py b/eth_defi/middleware.py index d4d47193..2956b3f6 100644 --- a/eth_defi/middleware.py +++ b/eth_defi/middleware.py @@ -84,6 +84,10 @@ # using eth_sendRawTransaction # One provide has not yet seeing a transaction broadcast through the other provider. -32000, + + # Some error we are getting from LlamaNodes eth_getLogs RPC that we do not know what it is all about + # {'code': -32043, 'message': 'Requested data is not available'} + -32043, ) diff --git a/pyproject.toml b/pyproject.toml index 2139d1d6..cf3a59ff 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "web3-ethereum-defi" -version = "0.22.13" +version = "0.22.14" description = "Python library for Uniswap, Aave, ChainLink, Enzyme and other protocols on BNB Chain, Polygon, Ethereum and other blockchains" authors = ["Mikko Ohtamaa "] license = "MIT"