{"action":"closed","issue":{"url":"https://api.github.com/repos/ethereum/go-ethereum/issues/2085","labels_url":"https://api.github.com/repos/ethereum/go-ethereum/issues/2085/labels{/name}","comments_url":"https://api.github.com/repos/ethereum/go-ethereum/issues/2085/comments","events_url":"https://api.github.com/repos/ethereum/go-ethereum/issues/2085/events","html_url":"https://github.com/ethereum/go-ethereum/issues/2085","id":123139117,"number":2085,"title":"eth_getLogs not checking all logs (?)","user":{"login":"kumavis","id":1474978,"avatar_url":"https://avatars.githubusercontent.com/u/1474978?v=3","gravatar_id":"","url":"https://api.github.com/users/kumavis","html_url":"https://github.com/kumavis","followers_url":"https://api.github.com/users/kumavis/followers","following_url":"https://api.github.com/users/kumavis/following{/other_user}","gists_url":"https://api.github.com/users/kumavis/gists{/gist_id}","starred_url":"https://api.github.com/users/kumavis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kumavis/subscriptions","organizations_url":"https://api.github.com/users/kumavis/orgs","repos_url":"https://api.github.com/users/kumavis/repos","events_url":"https://api.github.com/users/kumavis/events{/privacy}","received_events_url":"https://api.github.com/users/kumavis/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-12-20T07:07:47Z","updated_at":"2015-12-21T21:13:14Z","closed_at":"2015-12-21T21:13:14Z","body":"I’m seeing some seemingly broken eth_getLogs behavior on my geth node\r\n```\r\n$ curl -d '{\"jsonrpc\":\"2.0\",\"method\":\"eth_getLogs\",\"params\": [{ \"topics\": [\"0xb2899cb26a6f22b6b94e4cc8de24dc97bcf3cc73fc0dfaac71decef29fac7c53\"], \"fromBlock\": \"0x29f94\" }], \"id\":1}' -X POST https://testrpc.metamask.io/ | jsonogram\r\n├─ id: 1\r\n├─ jsonrpc: 2.0\r\n└─ result\r\n   ├─ 0\r\n   │  ├─ address: 0xbd8dd6e3d5ea45d55fc64462871938d5f4ba5c09\r\n   │  ├─ topics\r\n   │  │  ├─ 0: 0xb2899cb26a6f22b6b94e4cc8de24dc97bcf3cc73fc0dfaac71decef29fac7c53\r\n   │  │  └─ 1: 0x0000000000000000000000004b9ab6d832cd623751cda87a2714352d4c3b62a7\r\n   │  ├─ data: 0x\r\n   │  ├─ blockNumber: 0x29f94\r\n   │  ├─ logIndex: 0x0\r\n   │  ├─ blockHash: 0x7c414bcc414cb85e1a8a89f40098402eee5fdc5890400be116982d431cb8efd4\r\n   │  ├─ transactionHash: 0xa17385eca17e7ec9b2b6fe2cf53e2683f0317ed603206b1eeadfd577b098e312\r\n   │  └─ transactionIndex: 0x0\r\n   ├─ 1\r\n   │  ├─ address: 0xbd8dd6e3d5ea45d55fc64462871938d5f4ba5c09\r\n   │  ├─ topics\r\n   │  │  ├─ 0: 0xb2899cb26a6f22b6b94e4cc8de24dc97bcf3cc73fc0dfaac71decef29fac7c53\r\n   │  │  └─ 1: 0x0000000000000000000000004b9ab6d832cd623751cda87a2714352d4c3b62a7\r\n   │  ├─ data: 0x\r\n   │  ├─ blockNumber: 0x29fbc\r\n   │  ├─ logIndex: 0x0\r\n   │  ├─ blockHash: 0xe18bb61fa8bb1354aa5841606888dd8c4c1683e0234e1a85b455580ec2b5d5f1\r\n   │  ├─ transactionHash: 0x01d6ce5935d2a18e789b5b7c7aad5d784882533c7131f65380fb08a39bdec137\r\n   │  └─ transactionIndex: 0x0\r\n   ├─ 2\r\n   │  ├─ address: 0xbd8dd6e3d5ea45d55fc64462871938d5f4ba5c09\r\n   │  ├─ topics\r\n   │  │  ├─ 0: 0xb2899cb26a6f22b6b94e4cc8de24dc97bcf3cc73fc0dfaac71decef29fac7c53\r\n   │  │  └─ 1: 0x0000000000000000000000004b9ab6d832cd623751cda87a2714352d4c3b62a7\r\n   │  ├─ data: 0x\r\n   │  ├─ blockNumber: 0x29fe2\r\n   │  ├─ logIndex: 0x0\r\n   │  ├─ blockHash: 0xf9cbdb71c9d8a9b088c06997fa011d135e5d222ea11e54c776e7677f2b591159\r\n   │  ├─ transactionHash: 0x09a6ae9cb4ed8fb7b93b13874c4a8200c2bfbf19035d6e2dc9745d2204e02f7b\r\n   │  └─ transactionIndex: 0x1\r\n   ├─ 3\r\n   │  ├─ address: 0xbd8dd6e3d5ea45d55fc64462871938d5f4ba5c09\r\n   │  ├─ topics\r\n   │  │  ├─ 0: 0xb2899cb26a6f22b6b94e4cc8de24dc97bcf3cc73fc0dfaac71decef29fac7c53\r\n   │  │  └─ 1: 0x0000000000000000000000004b9ab6d832cd623751cda87a2714352d4c3b62a7\r\n   │  ├─ data: 0x\r\n   │  ├─ blockNumber: 0x29fff\r\n   │  ├─ logIndex: 0x0\r\n   │  ├─ blockHash: 0x73419c88ab12f1b8e42a8c0f586cb0fa2ef856a860a337a3f3847207afc69f33\r\n   │  ├─ transactionHash: 0x9d0b26446432ab6f428adb4f28e04e687d517e57071dc70aa71c21058a468f8e\r\n   │  └─ transactionIndex: 0x1\r\n   └─ 4\r\n      ├─ address: 0xbd8dd6e3d5ea45d55fc64462871938d5f4ba5c09\r\n      ├─ topics\r\n      │  ├─ 0: 0xb2899cb26a6f22b6b94e4cc8de24dc97bcf3cc73fc0dfaac71decef29fac7c53\r\n      │  └─ 1: 0x0000000000000000000000004b9ab6d832cd623751cda87a2714352d4c3b62a7\r\n      ├─ data: 0x\r\n      ├─ blockNumber: 0x2a025\r\n      ├─ logIndex: 0x0\r\n      ├─ blockHash: 0x8a1b9a77eb4bed526b4fcb459b9c7577b909ad9ba89b5c8f193695bb2d10225f\r\n      ├─ transactionHash: 0xb69821ef698d3dc7a108ad9a7a0204a2c13c8538ac10037cc5739985f307bb3b\r\n      └─ transactionIndex: 0x0\r\n```\r\nshows 4 results, each with two logs - the one I searched for, and another\r\n* `0xb2899cb26a6f22b6b94e4cc8de24dc97bcf3cc73fc0dfaac71decef29fac7c53`\r\n* `0x0000000000000000000000004b9ab6d832cd623751cda87a2714352d4c3b62a7`\r\n\r\nbut if i search for just the second one, I find no results\r\n```\r\n$ curl -d '{\"jsonrpc\":\"2.0\",\"method\":\"eth_getLogs\",\"params\": [{ \"topics\": [\"0x0000000000000000000000004b9ab6d832cd623751cda87a2714352d4c3b62a7\"], \"fromBlock\": \"0x29f94\" }], \"id\":1}' -X POST https://testrpc.metamask.io/\r\n├─ id: 1\r\n├─ jsonrpc: 2.0\r\n└─ result  <--- empty array\r\n```\r\nafaik, this is not intended behaviour"}}