Other80k+ stars

Bitcoin

The original cryptocurrency that started it all

Commit Details

Message
"Initial code commit"
Author
Satoshi Nakamoto
Date
2009-01-03
Hash
4405b78d6059e536c36974088a8ed4d9f0f29898

Fun Fact

The genesis block contains the text "The Times 03/Jan/2009 Chancellor on brink of second bailout for banks" - a message about bank bailouts.

</>First Code

C++
// Copyright (c) 2009 Satoshi Nakamoto
// Distributed under the MIT/X11 software license

#include "headers.h"

int64 GetBlockValue(int nHeight)
{
    int64 nSubsidy = 50 * COIN;
    
    // Subsidy is cut in half every 210000 blocks
    nSubsidy >>= (nHeight / 210000);
    
    return nSubsidy;
}

// The genesis block
uint256 hashGenesisBlock("0x000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f");

// Satoshi's message in the genesis block:
// "The Times 03/Jan/2009 Chancellor on brink of second bailout for banks"