Directory
- Generation of chunks
- Validation links for Blocks
- Validation process
- Merkle tree structure
Generation of chunks
Miners build blocks before they dig the mines.
Package Coinbase transactions into chunks
Package high-priority trades in a trading pool into chunks
优先级 = 交易的额度 * UTXO的深度/交易的size
- Anti-dust attack
Create a chunk header
版本号
|父区块哈希
|Merkle树根
|时间戳
|难度值
|Nonce
?
After the mining is successful, the calculated random number noncet is filled into the block head to propagate to the adjacent nodes.
Validation link validation process for chunks
- After the neighboring node receives the new district fast, does the following check immediately
- Verify that the nonce value of the POW matches the difficulty value
- Check if the timestamp is less than 2 hours (10 minutes a block) of the current time
- Check Merkle root is correct
- Check chunk size to be less than the upper limit of chunk size
- The first deal must be a coinbase transaction.
- Validate each transaction
Merkle tree structure Two forks
Merkle Tree
Merkle Path-Verify Path
Bitcoin block validation