ethereum / go-ethereum

Go implementation of the Ethereum protocol

Home Page:https://geth.ethereum.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`eth_getLogs` doesn't return pending logs

LogvinovLeon opened this issue · comments

System information

Geth version: Geth/v1.7.1-unstable/linux-amd64/go1.9
OS & Version: Linux
Commit hash : (if develop)

Expected behaviour

Geth should return all logs from transactions in the pending block

Actual behaviour

Geth returns an empty array of logs

Steps to reproduce the behaviour

  • Run geth node
  • Check that the pending block exist and contains transactions
    http http://54.215.190.250:8545 jsonrpc=2.0 id=1 method=eth_getBlockByNumber params:='["pending", true]'
  • Fetch all the logs from the pending block
    http http://54.215.190.250:8545 jsonrpc=2.0 id=1 method=eth_getLogs params:='[{"fromBlock": "pending", "toBlock": "pending"}]'

Backtrace

[backtrace]
commented

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.