블록타임 10분인 경우 누적분포도
class CBlockIndex {
public:
//! pointer to the hash of the block, if any. Memory is owned by this
//! CBlockIndex
const uint256 *phashBlock;
//! pointer to the index of the predecessor of this block
CBlockIndex *pprev;
//! pointer to the index of some further predecessor of this block
CBlockIndex *pskip;
//! height of the entry in the chain. The genesis block has height 0
int nHeight;
//! Which # file this block is stored in (blk?????.dat)
int nFile;
//! Byte offset within blk?????.dat where this block's data is stored
unsigned int nDataPos;
//! Byte offset within rev?????.dat where this block's undo data is stored
unsigned int nUndoPos;
//! (memory only) Total amount of work (expected number of hashes) in the
//! chain up to and including this block
arith_uint256 nChainWork;
//! Number of transactions in this block.
//! Note: in a potential headers-first mode, this number cannot be relied
//! upon
unsigned int nTx;
//! (memory only) Number of transactions in the chain up to and including
//! this block.
//! This value will be non-zero only if and only if transactions for this
//! block and all its parents are available. Change to 64-bit type when
//! necessary; won't happen before 2030
unsigned int nChainTx;
//! Verification status of this block. See enum BlockStatus
uint32_t nStatus;
//! block header
int32_t nVersion;
uint256 hashMerkleRoot;
uint32_t nTime;
uint32_t nBits;
uint256 nNonce;
//! (memory only) Sequential id assigned to distinguish order in which
//! blocks are received.
int32_t nSequenceId;
//! (memory only) Maximum nTime in the chain upto and including this block.
unsigned int nTimeMax;
위 CBlockIndex은 블록에 대한 정보를 저장하고 있는데 핵심 구조는 phashBlock과 pprev이다. phashBlock은 현 블록의 해시를 가리키는포인터이고 pprev는 이전 블록인덱스를 가리키는 포인터이다. 여기에서 중요한 점은 특정 블록 자체는 한번 만들어지고 체인 연결상태를 체크하기 위해서 참조만 하는 방법을 이용한 것이다.
그리고 한번 만들어지거나 수신한 블록은 지우지 않고 계속 유지한다. 한번 받은 블록은 완전하지 않거나 포크되더라도 지워지지 않고 하드디스크에 저장된다. 블록체인이 지울수 없는 자료라 하는데, 일시적인 체인분리가 발생해도 그 분리된 블록들도 지워지지 않는 특징이 있다.
비트코인이 기존 화폐를 대체할 수 없고 상대도 안됩니다. 그런데 앞으로 화폐에 상당한 시련이 닥칠것은 명확합니다. 그 때가 언제일지 모르지만 그때까지 비트코인은 계속 생명을 유지하고 발전할 것입니다. 확실한 것은 현재 우리가 생각하는 화폐개념과 차이가 나는 새로운 것이 나타납니다.