定義如下,根據(jù)是否有交易,可以分為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>,//交易組成的數(shù)組
}