Skip to content

Instantly share code, notes, and snippets.

View nelruk's full-sized avatar

Nelson nelruk

View GitHub Profile
@nelruk
nelruk / bitcoin-halving.cpp
Created November 14, 2017 22:44
Bitcoin halving (line 1093)
CAmount GetBlockSubsidy(int nHeight, const Consensus::Params& consensusParams)
{
int halvings = nHeight / consensusParams.nSubsidyHalvingInterval;
// Force block reward to zero when right shift is undefined.
if (halvings >= 64)
return 0;
CAmount nSubsidy = 50 * COIN;
// Subsidy is cut in half every 210,000 blocks which will occur approximately every 4 years.
nSubsidy >>= halvings;
@nelruk
nelruk / gist:edb3a36ab8621d622a2018c40ef4038a
Created March 22, 2017 16:37
Verifying that "nelsondcg.id" is my Blockstack ID. https://onename.com/nelsondcg
Verifying that "nelsondcg.id" is my Blockstack ID. https://onename.com/nelsondcg
@nelruk
nelruk / Demo_file
Created January 17, 2017 12:21
Hello world
<html>
<h1>Esto es un titulo de saludo</h1>
<p>Hola mundo</p>
</html>