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

force_map causing yearly mappings to be calculated several times #84

Closed LadyChristina closed 1 year ago

LadyChristina commented 1 year ago

Because of the condition in L46 of map.py, if force_map is True then the yearly mapping is calculated for each timeframe, e.g. for every month, which is a lot of excessive calculations https://github.com/Blockchain-Technology-Lab/pooling-analysis/blob/bb6f8e014691dbc55dfa689c5a67dddc3c206818/src/map.py#L46