Jump to content
Sign in to follow this  
DarkClaw

Determining the block reward and coin supply

Recommended Posts

We added an infographic that shows the block reward schedule and coin supply that should be helpful: http://www.xaya-gaming.net/#blockreward

In case anyone wants to check the math, here is what  I did to get reward/supply at a given blockheight. This is up to  21 million blocks, please let me know if something looks off:

by_int  = 1e3
premine = 46382344.69674
reward0 = 3.82934346
halving = 4.2e6
height  = seq(0, 21e6, by = by_int)
reward  = ifelse(height < 440e3, 1, reward0/2^floor((height + 1)/halving))
supply  = premine + cumsum(reward*by_int)

 

Edited by DarkClaw
  • Like 2

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

Your use of this site is governed by our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.