Add semantic block validation during the ZIP-212 grace period after Canopy activation #8430
Labels
A-consensus
Area: Consensus rule updates
C-tech-debt
Category: Code maintainability issues
C-testing
Category: These are tests
NU-4 Canopy
Network Upgrade: Canopy specific tasks
P-Medium ⚡
Motivation
We want to fully validate Canopy blocks and abide by the ZIP-212 grace period where note plaintext lead bytes are allowed to be either
0x01
or0x02
so that Regtest is as close to the Mainnet consensus rules as possible. Prior to Canopy activation those lead bytes must be0x01
, and after the grace period, they must be0x02
.This rule only applies to nodes and not wallets, and librustzcash may only allow for lead bytes of
0x02
after Canopy activation, so Zebra is currently mandating checkpoint validation until the end of the ZIP-212 grace period.Possible Design
The grace period after Canopy should only apply until the next network upgrade (NU5) is activated, so it should be the lesser of
Canopy Activation Height + ZIP_212_DURATION
orNU5 Activation Height
Testing
0x01
as well as0x02
during the ZIP-212 grace period0x02
after the ZIP-212 grace periodThe text was updated successfully, but these errors were encountered: