fix: Update comments for Heartwood's hashChainHistoryRoot
This commit is contained in:
parent
12cbe410f2
commit
5ece62f0a5
|
@ -35,9 +35,18 @@ pub struct BlockHeader {
|
||||||
/// header.
|
/// header.
|
||||||
pub merkle_root_hash: MerkleTreeRootHash,
|
pub merkle_root_hash: MerkleTreeRootHash,
|
||||||
|
|
||||||
/// [Sapling onward] The root LEBS2OSP256(rt) of the Sapling note
|
/// [Pre-Sapling] Reserved. All zeroes.
|
||||||
|
/// [Sapling and Blossom] The root LEBS2OSP256(rt) of the Sapling note
|
||||||
/// commitment tree corresponding to the final Sapling treestate of
|
/// commitment tree corresponding to the final Sapling treestate of
|
||||||
/// this block.
|
/// this block.
|
||||||
|
/// [Heartwood onward] The root of a Merkle Mountain Range tree, which
|
||||||
|
/// commits to various features of the chain's history, including the
|
||||||
|
/// Sapling commitment tree. This commitment supports the FlyClient
|
||||||
|
/// protocol. See ZIP-221 for details.
|
||||||
|
// TODO:
|
||||||
|
// - replace with an unspecified HistoryRootHash type?
|
||||||
|
// Note that the NetworkUpgrade list is in zebra-consensus, so we can't
|
||||||
|
// parse this field into a HistoryRootHash enum in zebra-chain.
|
||||||
pub final_sapling_root_hash: SaplingNoteTreeRootHash,
|
pub final_sapling_root_hash: SaplingNoteTreeRootHash,
|
||||||
|
|
||||||
/// The block timestamp is a Unix epoch time (UTC) when the miner
|
/// The block timestamp is a Unix epoch time (UTC) when the miner
|
||||||
|
@ -52,8 +61,7 @@ pub struct BlockHeader {
|
||||||
/// `ThresholdBits(height)`.
|
/// `ThresholdBits(height)`.
|
||||||
///
|
///
|
||||||
/// [Bitcoin-nBits](https://bitcoin.org/en/developer-reference#target-nbits)
|
/// [Bitcoin-nBits](https://bitcoin.org/en/developer-reference#target-nbits)
|
||||||
// parity-zcash has their own wrapper around u32 for this field, see #572 and:
|
// See #572 for details.
|
||||||
// https://github.com/paritytech/parity-zcash/blob/master/primitives/src/compact.rs
|
|
||||||
pub bits: u32,
|
pub bits: u32,
|
||||||
|
|
||||||
/// An arbitrary field that miners can change to modify the header
|
/// An arbitrary field that miners can change to modify the header
|
||||||
|
|
Loading…
Reference in New Issue