Skip to content

Count blocks by miner address

zgw edited this page Dec 4, 2018 · 2 revisions

Code

pyquarkchain/quarkchain/testnet/block_owners.py

Instruction

The tool will read the database of the master node and count the shard blocks by miner address. You must shutdown the cluster if there is one running because the cluster holds a lock on the database preventing the tool from reading it.

qkc@mac:~/projects/pyquarkchain/quarkchain/testnet$ python block_owners.py --db=/Users/qkc/testnet2/data/master.db/
Counting shard blocks from root block 979 2167e3c684e9a4ed33fb2875503b7ec92e740ae50427c69e718b1a5bda0cacce

ETHASH has 32014 blocks
314b2cd22c6d26618ce051a58c65af1253aecbb8 14109 44.07%
248dc97675f46cb2aeca53006f647ed94ef5b502 8152 25.46%
0000000000000000000000000000000000000000 5560 17.37%
b16a444c9a0d68f5e9f60e1004091b9f0cda34a9 3408 10.65%
02772c614f2c339e87527e75e63859bb6adeaa36 352 1.10%
4363b57f2eff8acac6a2b4896e4ad3905b1029d9 131 0.41%
557fd639ed70ad9dcbff0007958e9004cdb71e80 112 0.35%
db7fd07891697f74a7e5102cc2cc522c25dc06e9 72 0.22%
4bfc9294f73c03a680eff9d9432486affc1f815d 39 0.12%
63364490cbffa90df288bb396cc7f6e769ca8fab 30 0.09%
8d5153032ae3fe11d63b544e171aeff38988b874 22 0.07%
8a82db4770318fdfd591b803ef06141415690663 18 0.06%
626d9432723f2a6a92b0d0a2e2d917f5711ea6cd 9 0.03%

SHA2SHA2 has 17419 blocks
314b2cd22c6d26618ce051a58c65af1253aecbb8 7062 40.54%
0000000000000000000000000000000000000000 4566 26.21%
248dc97675f46cb2aeca53006f647ed94ef5b502 3059 17.56%
b16a444c9a0d68f5e9f60e1004091b9f0cda34a9 1991 11.43%
557fd639ed70ad9dcbff0007958e9004cdb71e80 254 1.46%
63364490cbffa90df288bb396cc7f6e769ca8fab 212 1.22%
f0d1d032719b783bf3ff03eabe12cfcc6ad6e770 204 1.17%
db7fd07891697f74a7e5102cc2cc522c25dc06e9 36 0.21%
626d9432723f2a6a92b0d0a2e2d917f5711ea6cd 26 0.15%
02772c614f2c339e87527e75e63859bb6adeaa36 9 0.05%

QKCHASH has 15946 blocks
314b2cd22c6d26618ce051a58c65af1253aecbb8 6834 42.86%
0000000000000000000000000000000000000000 3186 19.98%
6bd55c9c9d54dc7973a760885eaef778ac821898 2614 16.39%
248dc97675f46cb2aeca53006f647ed94ef5b502 1526 9.57%
52bec11bf55be5235cabb148fba7a0ea0efad2d9 724 4.54%
f0d1d032719b783bf3ff03eabe12cfcc6ad6e770 586 3.67%
b16a444c9a0d68f5e9f60e1004091b9f0cda34a9 321 2.01%
63364490cbffa90df288bb396cc7f6e769ca8fab 150 0.94%
db7fd07891697f74a7e5102cc2cc522c25dc06e9 5 0.03%