entry

定义如下,根据是否有交易,可以分为tick和transaction两类entry.

pub struct Entry {

    /// The number of hashes since the previous Entry ID.

    pub num_hashes: u64,//做了多少次hash

    /// The SHA-256 hash `num_hashes` after the previous Entry ID.

    pub hash: Hash,//此次entry的hash大小

    /// An unordered list of transactions that were observed before the Entry ID was

    /// generated. They may have been observed before a previous Entry ID but were

    /// pushed back into this list to ensure deterministic interpretation of the ledger.

    pub transactions: Vec<VersionedTransaction>,//交易组成的数组

}

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容