https://github.com/enriquefynn/ethereum-partitioning-experiments
Experiments on sharding ethereum
https://github.com/enriquefynn/ethereum-partitioning-experiments
datamining ethereum sharding
Last synced: 6 months ago
JSON representation
Experiments on sharding ethereum
- Host: GitHub
- URL: https://github.com/enriquefynn/ethereum-partitioning-experiments
- Owner: enriquefynn
- License: bsd-3-clause
- Created: 2018-08-31T13:48:26.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2021-03-29T14:59:58.000Z (over 4 years ago)
- Last Synced: 2025-03-21T06:51:16.153Z (7 months ago)
- Topics: datamining, ethereum, sharding
- Language: C++
- Homepage:
- Size: 154 KB
- Stars: 8
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ethereum-partitioning-experiments
Tools Used in ["Challenges and pitfalls of partitioning blockchains"](https://arxiv.org/abs/1804.07356)## Building
Download and install [Boost](https://www.boost.org/) and [Metis](http://glaros.dtc.umn.edu/gkhome/fetch/sw/metis/metis-5.1.0.tar.gz)Make sure you have boost with Graph Library Support (BGL)
```
mkdir ./build
cd build
cmake ..
```If you cmake cannot find METIS, or you installed it in another location do `cmake -DMETISROOTDIR= ..`
## Testing
```
cd ./build
./bin/unit_tests
```## Running
Download [calls.tar.gz](https://dslab.inf.usi.ch/ethereum_trace/downloads/calls.tar.gz) from https://dslab.inf.usi.ch/ethereum_trace/
Save and uncompress the files.
To run the test, go inside ./build:
```
./bin/buildGraph
```
results are saved in `/tmp/edge_cut_evolution_partitions_`## Observing results
Feed the experiment to one of the scripts in `./scripts` folder, for example:
```
SAVEGRAPH=true ./plotEdgeCutEvolution.py /tmp/edge_cut_evolution_.txt
```
A pdf with the same name as the experiment will be created, or omit the `SAVEGRAPH` variable for
a python visualization.