主链如何连接(原注释节选)

邮件与论坛 · 软件发布 · 源码阅读 · 原始文件

0.1.0 · bitcoin/src/main.h · 节选 · 第 1001—1008 行

节选自 bitcoin/src/main.h,完整保留这段连续注释。可在下方打开原始文件核对前后代码。

文件署名:Satoshi Nakamoto · 2009-01 发布包

原文件的独立写作时间未注明。

阅读语言
//
// 区块链是一个以创世区块为根的树状结构,
// 每个区块都可能有多个候选后继区块。
// pprev 和 pnext 在主链/最长链上连出一条路径。
// 一个 blockindex 可以有多个 pprev 指针指回它,
// 但 pnext 只会向前指向最长的分支;
// 如果该区块不属于最长链,pnext 就为空。
//
//
// The block chain is a tree shaped structure starting with the
// genesis block at the root, with each block potentially having multiple
// candidates to be the next block.  pprev and pnext link a path through the
// main/longest chain.  A blockindex may have multiple pprev pointing back
// to it, but pnext will only point forward to the longest branch, or will
// be null if the block is not part of the longest chain.
//

核对源码来源 ↗ · 阅读原始文件 · 下载原始压缩包 · 原软件许可

文件校验值 · SHA-256

ce9da46516e3042741224a7f9061e3181a5a4d17abba72b6e82922af3753d756

阅读字号

选择适合你的字号,之后阅读会继续使用。