Skip to content

Commit

Permalink
Updates test to expect NU5 as the default nu activation at Height(1)
Browse files Browse the repository at this point in the history
  • Loading branch information
arya2 committed Apr 30, 2024
1 parent 8fbf09e commit 97b5db8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion zebra-chain/src/block/commitment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ impl Commitment {
Ok(root) => Ok(FinalSaplingRoot(root)),
_ => Err(InvalidSapingRootBytes),
},
Heartwood | Canopy | Nu5 if Some(height) == Heartwood.activation_height(network) => {
Heartwood | Nu5 if Some(height) == Heartwood.activation_height(network) => {
if bytes == CHAIN_HISTORY_ACTIVATION_RESERVED {
Ok(ChainHistoryActivationReserved)
} else {
Expand Down
2 changes: 1 addition & 1 deletion zebra-chain/src/parameters/network/tests/vectors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ fn activates_network_upgrades_correctly() {

let expected_default_regtest_activation_heights = &[
(Height(0), NetworkUpgrade::Genesis),
(Height(1), NetworkUpgrade::Canopy),
(Height(1), NetworkUpgrade::Nu5),
];

for (network, expected_activation_heights) in [
Expand Down

0 comments on commit 97b5db8

Please sign in to comment.