Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Implement EIP-234 #136

Closed
nionis opened this issue Aug 1, 2018 · 5 comments · Fixed by #635 or #639
Closed

Implement EIP-234 #136

nionis opened this issue Aug 1, 2018 · 5 comments · Fixed by #635 or #639

Comments

@nionis
Copy link

nionis commented Aug 1, 2018

EIP 234

Adds support to be able to use blockHash in getLogs

already merge on master on both
geth and parity

@fabioberger
Copy link

Happy to work on this now. Has anyone already started?

@fabioberger
Copy link

Took a gander and looks like the underlying blockLogs lookup data-structure (LevelUpArrayAdapter) is indexed by blockNumber. In order to avoid block re-orgs (e.g snapshots) from causing getLogs to return the logs for the incorrect block, we should probably also have a mapping from blockHash to blockLogs.

Does this sound correct to the maintainers? @seesemichaelj @benjamincburns @tcoulter

@mikeseese
Copy link
Contributor

Hey @fabioberger! Nope, no one has started working this (that we know of at least).

Looking at the code, that does sound like a feasible option. I'm going to defer to @davidmurdoch or @benjamincburns on this one. I'll chat with them in our standup today and see if we can get you an answer! Thanks!

@benjamincburns
Copy link
Contributor

@fabioberger that makes sense to me. Thanks for offering to help out!

@fabioberger
Copy link

Other things have come up and I haven't found the time to work on this yet. Will chime in again when I find the time. Otherwise, anyone should feel free to take this on.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.