-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Support PendingLogsSubscription in eth_subscribe #5617
Comments
which pending block? locally built block or from CL? |
from CL if i understood you correctly |
makes sense, need to figure out how to do it |
@deromik do you know how this behaves exactly? does this resend logs for the same block.number if there's an alternative pending block, or only one update per block.number? |
one update with logs from latest block (at this moment it already became latest) in the beginning of the block something like this
|
sorry I don't understand. I'm also having trouble understanding the example. the pending block might change throughout the 12s, so unclear how this is reflected in an active subscription that only targets the pending tag. For example, let's say there's pending |
Take it |
Describe the bug
i use the following request to subscribe
{ "id": 1, "jsonrpc": "2.0", "method": "eth_subscribe", "params": [ "logs", { "fromBlock": "pending", "toBlock": "pending", "topics": [], "address": [] } ] }
and it does not return logs during ongoing pending block, this subscription will send the logs back at once only when the block is mined and the data is from latest which is not exactly what i have subscribed on.
#3404 #3320 related
tried on alpha 11 and latest develop
Steps to reproduce
no specific steps to reproduce
Node logs
No response
Platform(s)
Linux (x86)
What version/commit are you on?
ae6f1e3
What database version are you on?
Current database version: 1
Local database version: 1
What type of node are you running?
Full via --full flag
What prune config do you use, if any?
No response
If you've built Reth from source, provide the full command you used
dockerfile from repo built on linux machine
Code of Conduct
The text was updated successfully, but these errors were encountered: