Analysis of blockchain masternode divergences.
Simple python script which parse files containing block in input and print blocks with divergences. It walks in a folder tree containing blockchain blocks and parse it in order to return structured data about divergent blocks containing blocks id, hash, nodes & timestamp of block file creation.
- Input: folder hierarchy containing one directory per node with all blocks
- Ouptut: json data of all blocks containing divergences
- Python version: 3.X
git clone [email protected]:diaas/diaas_api.git
python parser.py -p <blocks_folder> -d
usage: parser.py [-h] --path PATH [-v] [-d]
Parse pengine blocks tree
optional arguments:
-h, --help show this help message and exit
--path PATH, -p PATH root path of the directory tree
-v, --verbose display INFO logging messages
-d, --debug display DEBUG logging messages