Skip to content

Commit 55c302c

Browse files
committed
zebra-consensus: Set activation heights for Canopy and NU7 to 1 for regtest creation in Orchard ZSA workflow tests
1 parent 3e47b2a commit 55c302c

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

zebra-consensus/src/orchard_zsa/tests.rs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ use orchard::{
3333
use zebra_chain::{
3434
block::{genesis::regtest_genesis_block, Block, Hash},
3535
orchard_zsa::{AssetState, BurnItem},
36-
parameters::Network,
36+
parameters::{testnet::ConfiguredActivationHeights, Network},
3737
serialization::ZcashDeserialize,
3838
};
3939

@@ -223,7 +223,14 @@ async fn request_asset_state(
223223
async fn check_orchard_zsa_workflow() -> Result<(), Report> {
224224
let _init_guard = zebra_test::init();
225225

226-
let network = Network::new_regtest(Default::default());
226+
let network = Network::new_regtest(
227+
ConfiguredActivationHeights {
228+
canopy: Some(1),
229+
nu7: Some(1),
230+
..Default::default()
231+
}
232+
.into(),
233+
);
227234

228235
let (state_service, read_state_service, _, _) = zebra_state::init_test_services(&network).await;
229236

0 commit comments

Comments
 (0)