A tool to analyze blocks mined across different zones in the Quai Network in Iron Age.
- Go 1.22 or later
- Quai Network chain data
- Clone this repository:
git clone <repository-url>
cd blocks-mined
- Install dependencies:
go mod tidy
- Build the binary:
go build -o blocks-mined
- Run the analysis:
./blocks-mined /path/to/quai/backup/root
The script will:
- Process blocks from epoch 1 (blocks 1-600000)
- Process blocks from epoch 2 (blocks 600001-1200000)
- Generate two CSV files with mining statistics:
epoch1_miners.csv
epoch2_miners.csv
The CSV files contain the following columns:
- Zone: The Quai zone name
- Miner Address: The ethereum address that mined the block
- Blocks Mined: Number of blocks mined by that address in that zone
.
├── main.go # Main script
├── go.mod # Go module file
├── go.sum # Go module checksum
├── README.md # This file
└── .gitignore # Git ignore file