You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From our recent investigation to the RPC service degradation, we found the issue is mostly caused by the following two RPCs:
getBlocks
getLogs
The two RPCs will query block information with the given range. The range is unlimited, which means if a user call these RPC methods from genesis to latest, the server will loop through 10 million blocks to give the result, which will take a large portion of server endpoints.
Solution
We are planning an upcoming release which contains the fix #3830 to be deployed to RPC server. This fix will add a limitation to the two RPC methods, which is currently set as 1024 blocks for each request. If a user request a batch larger than 1024, the RPC will return an error:
The two RPCs are not backward-compatible, thus will potentially incur service interruption in DAPPs. We encourage all DAPP developers to check the usage of this RPC method, and update the code to avoid any service interruption.
We are planning to release this version to our RPC server at Aug 9th, 2021.
Please leave a comment below if you have any concerns or questions regarding the change.
The text was updated successfully, but these errors were encountered:
Problem
From our recent investigation to the RPC service degradation, we found the issue is mostly caused by the following two RPCs:
getBlocks
getLogs
The two RPCs will query block information with the given range. The range is unlimited, which means if a user call these RPC methods from genesis to latest, the server will loop through 10 million blocks to give the result, which will take a large portion of server endpoints.
Solution
We are planning an upcoming release which contains the fix #3830 to be deployed to RPC server. This fix will add a limitation to the two RPC methods, which is currently set as 1024 blocks for each request. If a user request a batch larger than 1024, the RPC will return an error:
Impact and execution
The two RPCs are not backward-compatible, thus will potentially incur service interruption in DAPPs. We encourage all DAPP developers to check the usage of this RPC method, and update the code to avoid any service interruption.
We are planning to release this version to our RPC server at Aug 9th, 2021.
Please leave a comment below if you have any concerns or questions regarding the change.
The text was updated successfully, but these errors were encountered: