{"action":"created","issue":{"url":"https://api.github.com/repos/ethereum/go-ethereum/issues/568","labels_url":"https://api.github.com/repos/ethereum/go-ethereum/issues/568/labels{/name}","comments_url":"https://api.github.com/repos/ethereum/go-ethereum/issues/568/comments","events_url":"https://api.github.com/repos/ethereum/go-ethereum/issues/568/events","html_url":"https://github.com/ethereum/go-ethereum/issues/568","id":64387879,"number":568,"title":"RPC panic eth_getTransactionCount with pending","user":{"login":"ethers","id":6937903,"avatar_url":"https://avatars.githubusercontent.com/u/6937903?v=3","gravatar_id":"","url":"https://api.github.com/users/ethers","html_url":"https://github.com/ethers","followers_url":"https://api.github.com/users/ethers/followers","following_url":"https://api.github.com/users/ethers/following{/other_user}","gists_url":"https://api.github.com/users/ethers/gists{/gist_id}","starred_url":"https://api.github.com/users/ethers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ethers/subscriptions","organizations_url":"https://api.github.com/users/ethers/orgs","repos_url":"https://api.github.com/users/ethers/repos","events_url":"https://api.github.com/users/ethers/events{/privacy}","received_events_url":"https://api.github.com/users/ethers/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-25T22:36:20Z","updated_at":"2015-03-25T23:26:21Z","closed_at":null,"body":"Regression on develop 505f1fb\r\n\r\n```\r\ncurl -X POST --data '{\"jsonrpc\":\"2.0\",\"method\":\"eth_getTransactionCount\",\"params\":[\"0x9dc2299a76b68b7ffa9e3ba0fd8cd7646d21d409\",\"pending\"],\"id\":1}' http://localhost:8080\r\n```\r\n\r\nResult:\r\n```\r\nStarting RPC on port:  8080\r\n2015/03/25 15:29:59 http: panic serving 127.0.0.1:47820: runtime error: invalid memory address or nil pointer dereference\r\ngoroutine 59 [running]:\r\nnet/http.func·009()\r\n\t/usr/lib/go/src/pkg/net/http/server.go:1093 +0xae\r\nruntime.panic(0x9e4660, 0x145dc08)\r\n\t/usr/lib/go/src/pkg/runtime/panic.c:248 +0x106\r\ngithub.com/ethereum/go-ethereum/xeth.(*XEth).AtStateNum(0xc210a0c880, 0xfffffffffffffffe, 0xc210063100)\r\n\t/home/user/go/src/github.com/ethereum/go-ethereum/xeth/xeth.go:123 +0xd3\r\ngithub.com/ethereum/go-ethereum/rpc.(*EthereumApi).xethAtStateNum(0xc210a19de0, 0xfffffffffffffffe, 0x0)\r\n\t/home/user/go/src/github.com/ethereum/go-ethereum/rpc/api.go:44 +0x3f\r\ngithub.com/ethereum/go-ethereum/rpc.(*EthereumApi).GetRequestReply(0xc210a19de0, 0xc210a144b0, 0xc2100c7d30, 0xc210a144b0, 0x160)\r\n\t/home/user/go/src/github.com/ethereum/go-ethereum/rpc/api.go:138 +0x3d47\r\ngithub.com/ethereum/go-ethereum/rpc.RpcResponse(0xc210a19de0, 0xc210a144b0, 0x600)\r\n\t/home/user/go/src/github.com/ethereum/go-ethereum/rpc/http.go:72 +0x77\r\ngithub.com/ethereum/go-ethereum/rpc.func·001(0x7f9944606640, 0xc210a24320, 0xc210a0b680)\r\n\t/home/user/go/src/github.com/ethereum/go-ethereum/rpc/http.go:46 +0x3aa\r\nnet/http.HandlerFunc.ServeHTTP(0xc2100c7c50, 0x7f9944606640, 0xc210a24320, 0xc210a0b680)\r\n\t/usr/lib/go/src/pkg/net/http/server.go:1220 +0x40\r\nnet/http.serverHandler.ServeHTTP(0xc210a14410, 0x7f9944606640, 0xc210a24320, 0xc210a0b680)\r\n\t/usr/lib/go/src/pkg/net/http/server.go:1597 +0x16e\r\nnet/http.(*conn).serve(0xc210a0cf00)\r\n\t/usr/lib/go/src/pkg/net/http/server.go:1167 +0x7b7\r\ncreated by net/http.(*Server).Serve\r\n\t/usr/lib/go/src/pkg/net/http/server.go:1644 +0x28b\r\n```"},"comment":{"url":"https://api.github.com/repos/ethereum/go-ethereum/issues/comments/86251163","html_url":"https://github.com/ethereum/go-ethereum/issues/568#issuecomment-86251163","issue_url":"https://api.github.com/repos/ethereum/go-ethereum/issues/568","id":86251163,"user":{"login":"obscuren","id":6264126,"avatar_url":"https://avatars.githubusercontent.com/u/6264126?v=3","gravatar_id":"","url":"https://api.github.com/users/obscuren","html_url":"https://github.com/obscuren","followers_url":"https://api.github.com/users/obscuren/followers","following_url":"https://api.github.com/users/obscuren/following{/other_user}","gists_url":"https://api.github.com/users/obscuren/gists{/gist_id}","starred_url":"https://api.github.com/users/obscuren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/obscuren/subscriptions","organizations_url":"https://api.github.com/users/obscuren/orgs","repos_url":"https://api.github.com/users/obscuren/repos","events_url":"https://api.github.com/users/obscuren/events{/privacy}","received_events_url":"https://api.github.com/users/obscuren/received_events","type":"User","site_admin":false},"created_at":"2015-03-25T23:26:21Z","updated_at":"2015-03-25T23:26:21Z","body":"@tgerring could you look in to this? This is because of the `pending` defaultBlock"}}