diff --git a/zcash_local_net/src/validator/zebrad.rs b/zcash_local_net/src/validator/zebrad.rs index 5106a43..69e5719 100644 --- a/zcash_local_net/src/validator/zebrad.rs +++ b/zcash_local_net/src/validator/zebrad.rs @@ -15,7 +15,7 @@ use crate::{ }; use zcash_protocol::PoolType; use zingo_common_components::protocol::{ActivationHeights, NetworkType}; -use zingo_test_vectors::ZEBRAD_DEFAULT_MINER; +use zingo_test_vectors::{REG_O_ADDR_FROM_ABANDONART, ZEBRAD_DEFAULT_MINER}; use std::{ net::{IpAddr, Ipv4Addr, SocketAddr}, @@ -138,11 +138,13 @@ impl ValidatorConfig for ZebradConfig { activation_heights: ActivationHeights, chain_cache: Option, ) { - assert_eq!( - mine_to_pool, - PoolType::Transparent, - "Zebra can only mine to transparent using this test infrastructure currently, but tried to set to {mine_to_pool}" - ); + self.miner_address = match mine_to_pool { + PoolType::ORCHARD => REG_O_ADDR_FROM_ABANDONART.to_string(), + PoolType::SAPLING => { + panic!("Sapling mining pool is not supported for ZebradConfig test parameters"); + } + PoolType::Transparent => ZEBRAD_DEFAULT_MINER.to_string(), + }; self.network_type = NetworkType::Regtest(activation_heights); self.chain_cache = chain_cache; }