Skip to content
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

Switches to using new eth_getLogs by blockHash RPC. #25

Merged
merged 3 commits into from
Nov 5, 2018
Merged

Conversation

MicahZoltu
Copy link
Collaborator

This resolves a major source of pain with Blockstream, though it does mean that it depends on very new versions of Geth/Parity that have this functionality.

This resolves a major source of pain with Blockstream, though it does mean that it depends on very new versions of Geth/Parity that have this functionality.
…` rather than throwing an error.

`parseInt` is terrible and refuses to ever throw if something goes wrong, instead preferring to return "something reasonable" (which often times is completely unreasonable).  This change doesn't solve all of parseInt's problems, but it at least stops it from returning `NaN` or `Infinity`.
Copy link
Contributor

@epheph epheph left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good. I wonder if it'd be worthwhile to add the versions of geth and parity where the required EIP-234 functionality exists?

@MicahZoltu
Copy link
Collaborator Author

I actually don't know the versions. I hear it is in geth stable and parity beta at the moment, but I haven't verified personally.

@epheph
Copy link
Contributor

epheph commented Oct 3, 2018

Added section to README

@nionis
Copy link

nionis commented Oct 3, 2018

@MicahZoltu ganache support still in development

@MicahZoltu
Copy link
Collaborator Author

Big fan @epheph. This is currently available via npm install ethereumjs-blockstream@next. I will move it to the latest tag (e.g., npm install ethereumjs-blockstream) once both Geth and Parity stable versions contain it. If Parity drags its feet for too long on getting a stable version out with it I may change strategies, but for now that is the plan.

@nionis Think you can get support in ganache before Parity bumps stable to 2.1.*? ;)

@nionis
Copy link

nionis commented Oct 4, 2018

@MicahZoltu I am not working on it, but here is the issue trufflesuite/ganache#136

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants