Panic on pre-Canopy blocks in NonFinalizedState::commit_block #1903
Labels
A-rust
Area: Updates to Rust code
C-bug
Category: This is a bug
C-security
Category: Security issues
I-invalid-data
Zebra relies on invalid or untrusted data, or sends invalid data
I-usability
Zebra is hard to understand or use
NU-5
Network Upgrade: NU5 specific tasks
Milestone
Is your feature request related to a problem? Please describe.
After #1898, our state design RFC requires that
NonFinalizedState::commit_block
panics if the block is a pre-Canopy block.Before #1898, this panic was implicit in the transaction validation. But now that we're checkpointing on Canopy, we need an explicit panic.
Describe the solution you'd like
NonFinalizedState::commit_block
, panic if the block height is less than the Canopy activation height for the current networkDescribe alternatives you've considered
Don't panic
The text was updated successfully, but these errors were encountered: