Skip to content

Latest commit

 

History

History
35 lines (23 loc) · 1.04 KB

README.md

File metadata and controls

35 lines (23 loc) · 1.04 KB

chain_divergence

platform

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

Platform and requirements

  • Python version: 3.X

Getting started

git clone git@gitlab.pikcio.com:diaas/diaas_api.git
python parser.py -p <blocks_folder> -d

Usage

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