noncesense-research-lab / archival_network

Investigating the frequency of alternative blocks, reorganizations, potential double-spend attacks, selfish mining, and more.
MIT License
14 stars 7 forks source link

Empirical study of historical miner penalties #48

Open noncesense-research-lab opened 5 years ago

noncesense-research-lab commented 5 years ago

Suppose we have block at height H, which would normally generate a coinbase reward of R(H) if the block is small and there is no penalty. If there is an oversize block, then the coinbase is reduced. Define P(H) as the penalty imposed on each block. Total coinbase payout T(H) is thus: T(H) = R(H) - P(H)

I'm interested in collect these variables. I'm interested in a histogram of {P}, which I assume will have a lot of small P(H) = 0 blocks. How often are penalties applied, and what does their distribution look like? (bonus points if 3D distribution showing distribution evolution over time, i.e. x-axis: time bins y-axis: P (bins?) z-axis: counts of penalties applied within that time window.

Even a 2D histogram would be sweet, before jumping into the 3D.

Further, consider the miner's gain (G) from electing to oversize the block and take the penalty - how well were they compensated? Now we include the total fees the miner collected, F(H) G(H) = F(H) - P(H) I'm curious about the frequency of oversized blocks and profitability in those instances.

This project is totally open game. I have zero time to pursue NRL endeavors, at least for the next month. I would love for somebody to tackle this. Could even be a simple Jupyter notebook. Ping @neptuneresearch for data dumps of {height, total fees, block reward, block size} which I think is all that's necessary for the first steps described above.