{"action":"created","issue":{"url":"https://api.github.com/repos/ethereum/go-ethereum/issues/1226","labels_url":"https://api.github.com/repos/ethereum/go-ethereum/issues/1226/labels{/name}","comments_url":"https://api.github.com/repos/ethereum/go-ethereum/issues/1226/comments","events_url":"https://api.github.com/repos/ethereum/go-ethereum/issues/1226/events","html_url":"https://github.com/ethereum/go-ethereum/issues/1226","id":86898214,"number":1226,"title":"[RPC] incorrect logIndex in logs received from eth_getfilterchanges","user":{"login":"debris","id":2613714,"avatar_url":"https://avatars.githubusercontent.com/u/2613714?v=3","gravatar_id":"","url":"https://api.github.com/users/debris","html_url":"https://github.com/debris","followers_url":"https://api.github.com/users/debris/followers","following_url":"https://api.github.com/users/debris/following{/other_user}","gists_url":"https://api.github.com/users/debris/gists{/gist_id}","starred_url":"https://api.github.com/users/debris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/debris/subscriptions","organizations_url":"https://api.github.com/users/debris/orgs","repos_url":"https://api.github.com/users/debris/repos","events_url":"https://api.github.com/users/debris/events{/privacy}","received_events_url":"https://api.github.com/users/debris/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ethereum/go-ethereum/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/ethereum/go-ethereum/labels/RPC","name":"RPC","color":"d4c5f9"}],"state":"open","locked":false,"assignee":{"login":"tgerring","id":731472,"avatar_url":"https://avatars.githubusercontent.com/u/731472?v=3","gravatar_id":"","url":"https://api.github.com/users/tgerring","html_url":"https://github.com/tgerring","followers_url":"https://api.github.com/users/tgerring/followers","following_url":"https://api.github.com/users/tgerring/following{/other_user}","gists_url":"https://api.github.com/users/tgerring/gists{/gist_id}","starred_url":"https://api.github.com/users/tgerring/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tgerring/subscriptions","organizations_url":"https://api.github.com/users/tgerring/orgs","repos_url":"https://api.github.com/users/tgerring/repos","events_url":"https://api.github.com/users/tgerring/events{/privacy}","received_events_url":"https://api.github.com/users/tgerring/received_events","type":"User","site_admin":false},"milestone":null,"comments":14,"created_at":"2015-06-10T09:09:28Z","updated_at":"2015-07-09T14:59:50Z","closed_at":null,"body":"> `logIndex`: QUANTITY - integer of the log index position in the block. `null` when its pending log.\r\n\r\nCurrently it's always 0.\r\n\r\nSteps to reproduce:\r\n- create multiple transactions. Make each one create an event.\r\n- mine them in the same block\r\n- event when `transactionIndex` is > 0, `logIndex` is `0`\r\n\r\n```json\r\n{\r\n  \"address\": \"0xfe69e6f32a2a02b3169b072a7631ff33bf472ed0\",\r\n  \"blockNumber\": 115,\r\n  \"logIndex\": 0,\r\n  \"blockHash\": \"0x7dcaec77bdc5bd3dc1c96cdc3504ed23dc6132ea756ab3cb56a2ddaccae432d5\",\r\n  \"transactionHash\": \"0x09abbb095230e93b725929a8671a6c7e8ba51d7b8f3e4ae54db1ca7135ede61d\",\r\n  \"transactionIndex\": 4,\r\n  \"event\": \"Incremented\",\r\n  \"args\": {\r\n    \"odd\": true,\r\n    \"x\": \"91\"\r\n  }\r\n}\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/ethereum/go-ethereum/issues/comments/120016717","html_url":"https://github.com/ethereum/go-ethereum/issues/1226#issuecomment-120016717","issue_url":"https://api.github.com/repos/ethereum/go-ethereum/issues/1226","id":120016717,"user":{"login":"tgerring","id":731472,"avatar_url":"https://avatars.githubusercontent.com/u/731472?v=3","gravatar_id":"","url":"https://api.github.com/users/tgerring","html_url":"https://github.com/tgerring","followers_url":"https://api.github.com/users/tgerring/followers","following_url":"https://api.github.com/users/tgerring/following{/other_user}","gists_url":"https://api.github.com/users/tgerring/gists{/gist_id}","starred_url":"https://api.github.com/users/tgerring/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tgerring/subscriptions","organizations_url":"https://api.github.com/users/tgerring/orgs","repos_url":"https://api.github.com/users/tgerring/repos","events_url":"https://api.github.com/users/tgerring/events{/privacy}","received_events_url":"https://api.github.com/users/tgerring/received_events","type":"User","site_admin":false},"created_at":"2015-07-09T14:59:50Z","updated_at":"2015-07-09T14:59:50Z","body":"develop HEAD log index is not correct:\r\n\r\n```\r\n$ curl -X POST --data '{\"jsonrpc\":\"2.0\",\"method\":\"eth_getTransactionReceipt\",\"params\":[\"0x194bdf917c9bb213e1391c0172aaf63c8e0014006040b8bf627e285b67d8f81f\"],\"id\":1}' http://127.0.0.1:8545\r\n{\r\n\t\"id\": 1,\r\n\t\"jsonrpc\": \"2.0\",\r\n\t\"result\": {\r\n\t\t\"transactionHash\": \"0x194bdf917c9bb213e1391c0172aaf63c8e0014006040b8bf627e285b67d8f81f\",\r\n\t\t\"transactionIndex\": \"0x0\",\r\n\t\t\"blockNumber\": \"0xcd5be\",\r\n\t\t\"blockHash\": \"0x852c1440f950ffa8e83a16eda2ffd99569b68e4a46ebcff4547535ea75658f00\",\r\n\t\t\"cumulativeGasUsed\": \"0xc7e6\",\r\n\t\t\"gasUsed\": \"0xc7e6\",\r\n\t\t\"contractAddress\": null,\r\n\t\t\"logs\": [\r\n\t\t\t{\r\n\t\t\t\t\"address\": \"0x21a3a128968f7fd17eb0a16045a84769374aeae0\",\r\n\t\t\t\t\"topics\": [\r\n\t\t\t\t\t\"0xe1c52dc63b719ade82e8bea94cc41a0d5d28e4aaf536adb5e9cccc9ff8c1aeda\"\r\n\t\t\t\t],\r\n\t\t\t\t\"data\": \"0x000000000000000000000000e6716f9544a56c530d868e4bfbacb172315bdead9aecddd4c1227f08f3ea847ffebcd1204b54a97f95c9e16749f80ae5e92c3f4a\",\r\n\t\t\t\t\"blockNumber\": \"0xcd5be\",\r\n\t\t\t\t\"logIndex\": \"0x0\",\r\n\t\t\t\t\"blockHash\": \"0x852c1440f950ffa8e83a16eda2ffd99569b68e4a46ebcff4547535ea75658f00\",\r\n\t\t\t\t\"transactionHash\": \"0x194bdf917c9bb213e1391c0172aaf63c8e0014006040b8bf627e285b67d8f81f\",\r\n\t\t\t\t\"transactionIndex\": \"0x0\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\t\"address\": \"0x21a3a128968f7fd17eb0a16045a84769374aeae0\",\r\n\t\t\t\t\"topics\": [\r\n\t\t\t\t\t\"0xe7c957c06e9a662c1a6c77366179f5b702b97651dc28eee7d5bf1dff6e40bb4a\"\r\n\t\t\t\t],\r\n\t\t\t\t\"data\": \"0x000000000000000000000000e6716f9544a56c530d868e4bfbacb172315bdead9aecddd4c1227f08f3ea847ffebcd1204b54a97f95c9e16749f80ae5e92c3f4a0000000000000000000000000000000000000000000000000000000000000539000000000000000000000000deadbeefdeadbeefdeadbeefdeadbeefdeadbeef00000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000005686f727365000000000000000000000000000000000000000000000000000000\",\r\n\t\t\t\t\"blockNumber\": \"0xcd5be\",\r\n\t\t\t\t\"logIndex\": \"0x0\",\r\n\t\t\t\t\"blockHash\": \"0x852c1440f950ffa8e83a16eda2ffd99569b68e4a46ebcff4547535ea75658f00\",\r\n\t\t\t\t\"transactionHash\": \"0x194bdf917c9bb213e1391c0172aaf63c8e0014006040b8bf627e285b67d8f81f\",\r\n\t\t\t\t\"transactionIndex\": \"0x0\"\r\n\t\t\t}\r\n\t\t]\r\n\t}\r\n}\r\n``"}}