Giter VIP home page Giter VIP logo

hive's Introduction

hive - Ethereum end-to-end test harness

Hive is a system for running integration tests against Ethereum clients.

Ethereum Foundation maintains a public Hive instance to check for consensus, p2p and blockchain compatibility. You can find the latest test results here.

To read more about hive, please check the documentation.

Vulcanize Specific

This section will go through Vulcanize specific details.

Setup

  1. I highly recommend using the .devcontainer. It this moment in time this is the only supported option.
  2. Update line 9 in .devcontainer/devcontainer.json, and update your local path to the vulcanize-geth repo.
  3. cd clients/vulcanize-geth
  4. ./build_foundry.sh
  5. docker compose up --build

Running Tests

Once the DB container is running locally, you can run tests by:

./hive --sim devp2p --client vulcanize-geth

You can also use the provided console by running:

./hiveview --serve --logdir ./workspace/logs

Reset the DB

To reset the DB do the following in the shell which you utilized to run docker compose up --build.

  1. Ctrl + c
  2. docker-compose down
  3. docker volume rm vulcanize-geth_vdb_db_eth_server

Trophies

If you find a bug in your client implementation due to this project, please be so kind as to add it here to the trophy list. It could help prove that hive is indeed a useful tool for validating Ethereum client implementations.

  • go-ethereum:
    • Genesis chain config couldn't handle present but empty settings: #2790
    • Data race between remote block import and local block mining: #2793
    • Downloader didn't penalize incompatible forks hashly enough: #2801
  • Nethermind:
    • Bug in p2p whith bonding nodes algorithm found by Hive: #1894
    • Difference in return value for 'r' parameter in getTransactionByHash: #2372

Contributions

This project takes a different approach to code contributions than your usual FOSS project with well ingrained maintainers and relatively few external contributors. It is an experiment. Whether it will work out or not is for the future to decide.

We follow the Collective Code Construction Contract (C4), code contribution model, as expanded and explained in The ZeroMQ Process. The core idea being that any patch that successfully solves an issue (bug/feature) and doesn't break any existing code/contracts must be optimistically merged by maintainers. Followup patches may be used to for additional polishes โ€“ and patches may even be outright reverted if they turn out to have a negative impact โ€“ but no change must be rejected based on personal values.

License

The hive project is licensed under the GNU General Public License v3.0. You can find it in the COPYING file.

hive's People

Contributors

holiman avatar frankszendzielarz avatar fjl avatar karalabe avatar renaynay avatar gsalgado avatar cdetrio avatar tkstanczak avatar bas-vk avatar marioevz avatar zilm13 avatar protolambda avatar sebastiandremo avatar arkpar avatar meowsbits avatar ratanrsur avatar lightclient avatar somniastellarum avatar shemnon avatar abdulrabbani00 avatar pirapira avatar hobti01 avatar davemec avatar eugene-shevchenko avatar josefj avatar marcindsobczak avatar marekm25 avatar mariusvanderwijden avatar s1na avatar bhargavasomu avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.