Line data Source code
1 : // Copyright (c) 2020-2021 The PIVX Core developers 2 : // Distributed under the MIT software license, see the accompanying 3 : // file COPYING or https://www.opensource.org/licenses/mit-license.php. 4 : 5 : #include "test/librust/sapling_test_fixture.h" 6 : #include "sapling/sapling_util.h" 7 : 8 44 : SaplingTestingSetup::SaplingTestingSetup(const std::string& chainName) : TestingSetup(chainName) 9 : { 10 44 : initZKSNARKS(); // init zk-snarks lib 11 44 : } 12 : 13 44 : SaplingTestingSetup::~SaplingTestingSetup() 14 : { 15 44 : } 16 : 17 9 : SaplingRegTestingSetup::SaplingRegTestingSetup() : SaplingTestingSetup(CBaseChainParams::REGTEST) 18 : { 19 9 : UpdateNetworkUpgradeParameters(Consensus::UPGRADE_V5_0, Consensus::NetworkUpgrade::ALWAYS_ACTIVE); 20 9 : }