Skip to content

[RPC] incorrect logIndex in logs received from eth_getfilterchanges #1226

@debris

Description

@debris

logIndex: QUANTITY - integer of the log index position in the block. null when its pending log.

Currently it's always 0.

Steps to reproduce:

  • create multiple transactions. Make each one create an event.
  • mine them in the same block
  • event when transactionIndex is > 0, logIndex is 0
{
  "address": "0xfe69e6f32a2a02b3169b072a7631ff33bf472ed0",
  "blockNumber": 115,
  "logIndex": 0,
  "blockHash": "0x7dcaec77bdc5bd3dc1c96cdc3504ed23dc6132ea756ab3cb56a2ddaccae432d5",
  "transactionHash": "0x09abbb095230e93b725929a8671a6c7e8ba51d7b8f3e4ae54db1ca7135ede61d",
  "transactionIndex": 4,
  "event": "Incremented",
  "args": {
    "odd": true,
    "x": "91"
  }
}

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions