PIVX Core  5.6.99
P2P Digital Currency
Classes | Functions
mnpayments_tests.cpp File Reference
#include "test/test_pivx.h"
#include "blockassembler.h"
#include "consensus/merkle.h"
#include "masternode-payments.h"
#include "masternodeman.h"
#include "spork.h"
#include "tiertwo/tiertwo_sync_state.h"
#include "primitives/transaction.h"
#include "utilmoneystr.h"
#include "util/blockstatecatcher.h"
#include "validation.h"
#include <boost/test/unit_test.hpp>
Include dependency graph for mnpayments_tests.cpp:

Go to the source code of this file.

Classes

class  MNdata
 
class  FakeMasternode
 

Functions

void enableMnSyncAndMNPayments ()
 
CMasternode buildMN (const MNdata &data, const uint256 &tipHash, uint64_t tipTime)
 
std::vector< FakeMasternodebuildMNList (const uint256 &tipHash, uint64_t tipTime, int size)
 
FakeMasternode findMNData (std::vector< FakeMasternode > &mnList, const MasternodeRef &ref)
 
bool findStrError (CValidationState &state, const std::string &str)
 
 BOOST_FIXTURE_TEST_CASE (mnwinner_test, TestChain100Setup)
 

Function Documentation

◆ BOOST_FIXTURE_TEST_CASE()

BOOST_FIXTURE_TEST_CASE ( mnwinner_test  ,
TestChain100Setup   
)

Definition at line 118 of file mnpayments_tests.cpp.

Here is the call graph for this function:

◆ buildMN()

CMasternode buildMN ( const MNdata data,
const uint256 tipHash,
uint64_t  tipTime 
)

Definition at line 64 of file mnpayments_tests.cpp.

Here is the caller graph for this function:

◆ buildMNList()

std::vector<FakeMasternode> buildMNList ( const uint256 tipHash,
uint64_t  tipTime,
int  size 
)

Definition at line 82 of file mnpayments_tests.cpp.

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

◆ enableMnSyncAndMNPayments()

void enableMnSyncAndMNPayments ( )

Definition at line 22 of file mnpayments_tests.cpp.

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

◆ findMNData()

FakeMasternode findMNData ( std::vector< FakeMasternode > &  mnList,
const MasternodeRef ref 
)

Definition at line 103 of file mnpayments_tests.cpp.

◆ findStrError()

bool findStrError ( CValidationState state,
const std::string &  str 
)

Definition at line 113 of file mnpayments_tests.cpp.

Here is the call graph for this function: