Changeset View
Changeset View
Standalone View
Standalone View
src/primitives/block.h
// Copyright (c) 2009-2010 Satoshi Nakamoto | // Copyright (c) 2009-2010 Satoshi Nakamoto | ||||
// Copyright (c) 2009-2016 The Bitcoin Core developers | // Copyright (c) 2009-2016 The Bitcoin Core developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#ifndef BITCOIN_PRIMITIVES_BLOCK_H | #ifndef BITCOIN_PRIMITIVES_BLOCK_H | ||||
#define BITCOIN_PRIMITIVES_BLOCK_H | #define BITCOIN_PRIMITIVES_BLOCK_H | ||||
#include "primitives/transaction.h" | #include <primitives/transaction.h> | ||||
#include "serialize.h" | #include <serialize.h> | ||||
#include "uint256.h" | #include <uint256.h> | ||||
/** | /** | ||||
* Nodes collect new transactions into a block, hash them into a hash tree, and | * Nodes collect new transactions into a block, hash them into a hash tree, and | ||||
* scan through nonce values to make the block's hash satisfy proof-of-work | * scan through nonce values to make the block's hash satisfy proof-of-work | ||||
* requirements. When they solve the proof-of-work, they broadcast the block to | * requirements. When they solve the proof-of-work, they broadcast the block to | ||||
* everyone and the block is added to the block chain. The first transaction in | * everyone and the block is added to the block chain. The first transaction in | ||||
* the block is a special one that creates a new coin owned by the creator of | * the block is a special one that creates a new coin owned by the creator of | ||||
* the block. | * the block. | ||||
▲ Show 20 Lines • Show All 112 Lines • Show Last 20 Lines |