Skip to content

thomasboni/chain_divergence

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 [email protected]: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

About

Analysis of blockchain masternode divergences

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages