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
Hello, @menaitm, I think there are several possible options: you can try to write a faster algorithm that, for example, will use bit operations instead of calculating a hash function, or you can add a parameter to the validate_address function that will disable the is_checksum_address. If it necessary, I can take over the solution of this issue
What was wrong?
After profiling my asyncio application, 2.5% of the event loop blocking is coming from the
validate_address
function in web3py:https://github.com/ethereum/web3.py/blob/v6.2.0/web3/_utils/validation.py#L160
Inside this function,
is_checksum_address()
is the slowest call.How can it be fixed?
Can the library provide flags to enable/disable expensive validation methods like this?
The text was updated successfully, but these errors were encountered: