Skip to content

eth_getFilterLogs causes error #1202

@frozeman

Description

@frozeman

If you create pending Transactions filter:

{jsonrpc: "2.0", method: "eth_newPendingTransactionFilter", params: [], id: 14180}

And then try to eth_getFilterLogs:

{jsonrpc: "2.0", method: "eth_getFilterLogs", params: ["0x2"], id: 14181}

The nodes spits out the following error:

...
I0608 17:28:27.951322    4735 server.go:1775] http: panic serving 127.0.0.1:55961: runtime error: invalid memory address or nil pointer dereference
goroutine 213 [running]:
net/http.func·011()
    /usr/local/Cellar/go/1.4.1/libexec/src/net/http/server.go:1130 +0xbb
github.com/ethereum/go-ethereum/core.(*BlockProcessor).GetLogs(0xc2081dd860, 0xc2082aecc0, 0x0, 0x0, 0x0, 0x5093780, 0xc20802a0d0)
    /Users/frozeman/Developer/go/src/github.com/ethereum/go-ethereum/core/block_processor.go:391 +0x314
github.com/ethereum/go-ethereum/core.(*Filter).Find(0xc208204300, 0x0, 0x0, 0x0)
    /Users/frozeman/Developer/go/src/github.com/ethereum/go-ethereum/core/filter.go:93 +0x239
github.com/ethereum/go-ethereum/xeth.(*XEth).Logs(0xc2282b00c0, 0x0, 0x0, 0x0, 0x0)
    /Users/frozeman/Developer/go/src/github.com/ethereum/go-ethereum/xeth/xeth.go:636 +0xb7
github.com/ethereum/go-ethereum/rpc.(*EthereumApi).GetRequestReply(0xc2081b00d0, 0xc208218230, 0xc2082c3900, 0x0, 0x0)
...

https://gist.github.com/frozeman/fc922fb67c4728b798bf

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions