PIVX Core  5.6.99
P2P Digital Currency
sapling_test_fixture.cpp
Go to the documentation of this file.
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 
6 #include "sapling/sapling_util.h"
7 
8 SaplingTestingSetup::SaplingTestingSetup(const std::string& chainName) : TestingSetup(chainName)
9 {
10  initZKSNARKS(); // init zk-snarks lib
11 }
12 
14 {
15 }
16 
18 {
20 }
void UpdateNetworkUpgradeParameters(Consensus::UpgradeIndex idx, int nActivationHeight)
Allows modifying the network upgrade regtest parameters.
CBaseChainParams defines the base parameters (shared between pivx-cli and pivxd) of a given instance ...
@ UPGRADE_V5_0
Definition: params.h:36
static constexpr int ALWAYS_ACTIVE
Special value for nActivationHeight indicating that the upgrade is always active.
Definition: params.h:67
Testing setup that configures a complete environment for Sapling testing.
SaplingTestingSetup(const std::string &chainName=CBaseChainParams::MAIN)
void initZKSNARKS()
Definition: system.cpp:624