PIVX Core  5.6.99
P2P Digital Currency
Enumerations | Functions | Variables
main_tests.cpp File Reference
#include "test/test_pivx.h"
#include "blocksignature.h"
#include "net.h"
#include "primitives/transaction.h"
#include "script/sign.h"
#include "validation.h"
#include <boost/test/unit_test.hpp>
Include dependency graph for main_tests.cpp:

Go to the source code of this file.

Enumerations

enum  BlockSignatureType { P2PK , P2PKH , P2CS }
 

Functions

CScript GetScriptForType (CPubKey pubKey, BlockSignatureType type)
 
std::vector< unsigned char > CreateDummyScriptSigWithKey (CPubKey pubKey)
 
CScript GetDummyScriptSigByType (CPubKey pubKey, bool isP2PK)
 
CBlock CreateDummyBlockWithSignature (CKey stakingKey, BlockSignatureType type, bool useInputP2PK)
 
bool TestBlockSignature (const CBlock &block)
 
 BOOST_AUTO_TEST_CASE (block_signature_test)
 
 BOOST_AUTO_TEST_CASE (subsidy_limit_test)
 
bool ReturnFalse ()
 
bool ReturnTrue ()
 
 BOOST_AUTO_TEST_CASE (test_combiner_all)
 

Variables

CAmount nMoneySupplyPoWEnd = 43199500 * COIN
 

Enumeration Type Documentation

◆ BlockSignatureType

Enumerator
P2PK 
P2PKH 
P2CS 

Definition at line 19 of file main_tests.cpp.

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/3]

BOOST_AUTO_TEST_CASE ( block_signature_test  )

Definition at line 80 of file main_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [2/3]

BOOST_AUTO_TEST_CASE ( subsidy_limit_test  )

Definition at line 106 of file main_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [3/3]

BOOST_AUTO_TEST_CASE ( test_combiner_all  )

Definition at line 144 of file main_tests.cpp.

Here is the call graph for this function:

◆ CreateDummyBlockWithSignature()

CBlock CreateDummyBlockWithSignature ( CKey  stakingKey,
BlockSignatureType  type,
bool  useInputP2PK 
)

Definition at line 51 of file main_tests.cpp.

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

◆ CreateDummyScriptSigWithKey()

std::vector<unsigned char> CreateDummyScriptSigWithKey ( CPubKey  pubKey)

Definition at line 35 of file main_tests.cpp.

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

◆ GetDummyScriptSigByType()

CScript GetDummyScriptSigByType ( CPubKey  pubKey,
bool  isP2PK 
)

Definition at line 43 of file main_tests.cpp.

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

◆ GetScriptForType()

CScript GetScriptForType ( CPubKey  pubKey,
BlockSignatureType  type 
)

Definition at line 25 of file main_tests.cpp.

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

◆ ReturnFalse()

bool ReturnFalse ( )

Definition at line 141 of file main_tests.cpp.

Here is the caller graph for this function:

◆ ReturnTrue()

bool ReturnTrue ( )

Definition at line 142 of file main_tests.cpp.

Here is the caller graph for this function:

◆ TestBlockSignature()

bool TestBlockSignature ( const CBlock block)

Definition at line 75 of file main_tests.cpp.

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

Variable Documentation

◆ nMoneySupplyPoWEnd

CAmount nMoneySupplyPoWEnd = 43199500 * COIN

Definition at line 104 of file main_tests.cpp.