-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
getPastEvents only returns results if fromBlock is high enough #1297
Comments
getPastEvents
only returns results if fromBlock
is high enough
Which node are you using, or infura? |
I am running a gwhale node locally. Can it be a node setting issue? I run this node using Sorry, not providing a Could we find out why the connection closes? |
This was a "max frame size" issue, I increased |
@JohanTh thanks for sharing this! could you please share how you increased these values? was it by editing the npm module code directly? - for that you'd have to fork the library and then source your package from a git repo for this change to work anywhere (i.e. CI servers) or was it a different approach somehow setting up your web3 client with a different configuration? thanks!! |
@eladmallel I edited the npm modules directly. Not the best way but works for me since my app was made for myself only so I did not bother forking. |
@JohanTh thank you! |
Made a comment how it can be done now without modifying your node modules in #1217 (comment) |
Using web3@1.0.0-beta.27.
Unless I have the
fromBlock
set to a too high number I get an error message when usinggetPastEvents
. Setting it to 0 or removing it does not work. Depending on which address I am filtering on I have to set thefromBlock
differently to not get this error message.The error:
My event:
The text was updated successfully, but these errors were encountered: