Blockchain-Technology-Lab / consensus-decentralization

Tool that analyzes blockchain decentralization on the consensus layer by looking at the block production distributions of various blockchain systems.
https://blockchain-technology-lab.github.io/consensus-decentralization
MIT License
25 stars 6 forks source link

Split mapping #127

Closed LadyChristina closed 11 months ago

LadyChristina commented 1 year ago

All Submissions:

Description

Split "mapping" into two modules, mapping and aggregation. Now the mapping is only responsible for mapping blocks to entities (and is not dependent on any timeframe), while the aggregator generates the files with information about the distribution of resources to entities for some timeframe.

Also replaced file reading / writing method (json and csv methods instead of simple string parsing) for clarity and easier testing / maintenance.

Left to do: