Created
June 7, 2018 08:46
-
-
Save dlgusdn616/e58dcd00376210689f71f237b21410b5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// class CBlock in main.h | |
// header: 흔히 말하는 블록 헤더의 정체다. 풀노드가 아닌 경량 클라이언트(light client)들은 블록 헤더만 저장하게 된다. | |
int nVersion; | |
uint256 hashPrevBlock; | |
uint256 hashMerkleRoot; // BuildMerkleTree()로 생성되는 머클루트 | |
unsigned int nTime; | |
unsigned int nBits; | |
unsigned int nNonce; | |
// network and disk | |
vector<CTransaction> vtx; // 트랜잭션들을 저장할 때는 CTransaction 클래스의 벡터로 저장 | |
// A block contains multiple transactions, held in vector<CTransaction> vtx. | |
// memory only | |
mutable vector<uint256> vMerkleTree; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment