Skip to content
This repository has been archived by the owner on Jul 21, 2020. It is now read-only.

Clean up untested methods #2

Merged
merged 4 commits into from
Feb 3, 2017
Merged

Clean up untested methods #2

merged 4 commits into from
Feb 3, 2017

Conversation

se3000
Copy link
Contributor

@se3000 se3000 commented Jan 30, 2017

This pull request cleans up some of the methods that were not tested, and so seemingly unused. Fixes various problems like referring to classes and constants that didn't exist, which I missed at the first pass of originally pulling this out of ruby-ethereum. Additionally adds some tests, and a related missing function for some useful methods.

This is really just supposed to clean up the gem, as it was pulled out rather quickly initially.

@se3000
Copy link
Contributor Author

se3000 commented Jan 30, 2017

Hi Jan! 新年快乐! I'm just getting around to writing a pull request to get this gem used in ruby-ethereum(it's already used in ruby-eth).

To start I went through the gem, cleaning it up, kind of following your suggestion of only putting pieces in that are needed. With a bit more context on what everything does, I began to wonder if this is really a necessary gem. For the most part it seems to mainly be wrappers around RLP and SHA3, with a couple more helper methods for coercing between different formats.

What do you think? I am still happy to write the pull request for ruby-ethereum if you are open to it, but I'm beginning to wonder if will be worth the coordination long term. Maybe a little duplication is not the worst thing if it eliminates the complexity of spreading the code across so many repositories. Are there other functions you imagine being pulled out into this gem?

Apologies for taking so long to get around to this. Hope you're doing well.

@janx janx merged commit 17e55f0 into janx:master Feb 3, 2017
@janx
Copy link
Owner

janx commented Feb 3, 2017

@se3000 新年快乐! 🐓

I agree it may not worth it at this stage, there's higher priority tasks. As you can tell we lack contributors, ruby-ethereum can barely keep up with other clients, let alone ruby-devp2p and reth (both never finished).

I'd like to see more effort on ruby-ethereum itself. There're a lot of things to do:

  • review/refactor recent spurious dragon hard fork commits on master branch - I passed all tests but in a delicate way
  • update fixtures and pass new tests
  • block/state separation refactoring like what we did here
  • and we're planning for Metropolis

If you're interested let me know, I'm happy to answer any questions :-)

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

Successfully merging this pull request may close these issues.

2 participants