PIVX Core  5.6.99
P2P Digital Currency
Functions
pos_validations_tests.cpp File Reference
#include "wallet/test/pos_test_fixture.h"
#include "blockassembler.h"
#include "coincontrol.h"
#include "util/blockstatecatcher.h"
#include "blocksignature.h"
#include "consensus/merkle.h"
#include "primitives/block.h"
#include "script/sign.h"
#include "test/util/blocksutil.h"
#include "wallet/wallet.h"
#include <boost/test/unit_test.hpp>
Include dependency graph for pos_validations_tests.cpp:

Go to the source code of this file.

Functions

void reSignTx (CMutableTransaction &mtx, const std::vector< CTxOut > &txPrevOutputs, CWallet *wallet)
 
 BOOST_FIXTURE_TEST_CASE (coinstake_tests, TestPoSChainSetup)
 
CTransaction CreateAndCommitTx (CWallet *pwalletMain, const CTxDestination &dest, CAmount destValue, CCoinControl *coinControl=nullptr)
 
COutPoint GetOutpointWithAmount (const CTransaction &tx, CAmount outpointValue)
 
std::shared_ptr< CBlockCreateBlockInternal (CWallet *pwalletMain, const std::vector< CMutableTransaction > &txns={}, CBlockIndex *customPrevBlock=nullptr, std::initializer_list< std::shared_ptr< CBlock >> forkchain={})
 
 BOOST_FIXTURE_TEST_CASE (created_on_fork_tests, TestPoSChainSetup)
 

Function Documentation

◆ BOOST_FIXTURE_TEST_CASE() [1/2]

BOOST_FIXTURE_TEST_CASE ( coinstake_tests  ,
TestPoSChainSetup   
)

Definition at line 39 of file pos_validations_tests.cpp.

Here is the call graph for this function:

◆ BOOST_FIXTURE_TEST_CASE() [2/2]

BOOST_FIXTURE_TEST_CASE ( created_on_fork_tests  ,
TestPoSChainSetup   
)

Definition at line 197 of file pos_validations_tests.cpp.

Here is the call graph for this function:

◆ CreateAndCommitTx()

CTransaction CreateAndCommitTx ( CWallet pwalletMain,
const CTxDestination dest,
CAmount  destValue,
CCoinControl coinControl = nullptr 
)

Definition at line 92 of file pos_validations_tests.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CreateBlockInternal()

std::shared_ptr<CBlock> CreateBlockInternal ( CWallet pwalletMain,
const std::vector< CMutableTransaction > &  txns = {},
CBlockIndex customPrevBlock = nullptr,
std::initializer_list< std::shared_ptr< CBlock >>  forkchain = {} 
)

Definition at line 141 of file pos_validations_tests.cpp.

Here is the caller graph for this function:

◆ GetOutpointWithAmount()

COutPoint GetOutpointWithAmount ( const CTransaction tx,
CAmount  outpointValue 
)

Definition at line 118 of file pos_validations_tests.cpp.

Here is the call graph for this function:

◆ reSignTx()

void reSignTx ( CMutableTransaction mtx,
const std::vector< CTxOut > &  txPrevOutputs,
CWallet wallet 
)

Definition at line 21 of file pos_validations_tests.cpp.

Here is the call graph for this function:
Here is the caller graph for this function: