Validate consensus rules on root hash and change data modeling. #881
Labels
A-consensus
Area: Consensus rule updates
C-bug
Category: This is a bug
E-help-wanted
Call for participation: Help is requested to fix this issue.
good first issue
NU-1 Sapling
Network Upgrade: Sapling specific tasks
NU-2 Blossom
Network Upgrade: Blossom specific tasks
NU-3 Heartwood
Network Upgrade: Heartwood specific tasks
NU-4 Canopy
Network Upgrade: Canopy specific tasks
NU-5
Network Upgrade: NU5 specific tasks
Milestone
Tasks
There are various consensus rules noted in the comments of the
RootHash
enum that we never actually check. To check these, I think we should:Block::root_hash
to return aResult
rather than anOption
and enforce the all-zeros rules;PreSaplingReserved([u8; 32])
toPreSaplingReserved
;ChainHistoryActivationReserved([u8; 32])
toChainHistoryActivationReserved
;These changes might be impacted by the chain history implementation in #1567.
Variants
zcash_history
crate, which is also used byzcashd
Previous PR was #856
The text was updated successfully, but these errors were encountered: