-
Notifications
You must be signed in to change notification settings - Fork 851
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Besu returns logs with incorrect logIndex
(different behaviour than go-ethereum)
#4114
Comments
does it sound like : #3921 ? |
in the short term, you can cleanly shut down besu, delete the |
Sounds like a different issue to me, particularly given it happens all the time. My guess is that Besu has just implemented this incorrectly and is setting logIndex to the index of the event in terms of what the transaction emitted, rather than what the block emitted. That certainly looks like what |
Hey folks, any update on this? We're looking to add official support for the Besu client to the Chainlink node and this is the last remaining issue preventing that as far as we can tell. |
Apologies for not reading well, you are correct this is not a duplicate of #3921. We will prioritize this, but be advised it is competing with merge preparation work. |
This a blocker for us to use Chainlink with Besu. |
@samsondav - this change has been merged in and will be in the next release 22.10.0-RC1 - planned for tomorrow |
Description
As a RPC client consumer, I expect Besu to return logs with the same
logIndex
as go-ethereum. It does not do this.Acceptance Criteria
Besu should return logs with the same
logIndex
as go-ethereum.Steps to Reproduce (Bug)
(examples are from Sepolia - chain ID 11155111)
go-ethereum
curl -v --data '{"method":"eth_getLogs","id":"1","params":[{"blockhash": "0xd34a6973e49210a7ae5e487459f625c7444f9ffca93b2430400677cdaa82c293"}],"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST <ethereum RPC URL> | jq
A sample of this response is below:
besu
curl -v --data '{"method":"eth_getLogs","id":"1","params":[{"blockhash": "0xd34a6973e49210a7ae5e487459f625c7444f9ffca93b2430400677cdaa82c293"}],"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST <besu RPC URL> | jq
Expected behavior: [What you expect to happen]
I expect logs to be uniquely indexed by
(blockHash, logIndex)
.Actual behavior: [What actually happens]
It appears that
logIndex
is only unique within(blockHash, transactionIndex, logIndex)
. This is different to how go-ethereum works.Frequency: [What percentage of the time does it occur?]
100% of the time.
The text was updated successfully, but these errors were encountered: