PIVX Core  5.6.99
P2P Digital Currency
Functions
transaction_tests.cpp File Reference
#include "test/test_pivx.h"
#include "test/data/tx_invalid.json.h"
#include "test/data/tx_valid.json.h"
#include "consensus/tx_verify.h"
#include "clientversion.h"
#include "checkqueue.h"
#include "core_io.h"
#include "key.h"
#include "keystore.h"
#include "policy/policy.h"
#include "script/script.h"
#include "script/script_error.h"
#include "script/sign.h"
#include "validation.h"
#include <boost/algorithm/string/classification.hpp>
#include <boost/algorithm/string/split.hpp>
#include <boost/test/unit_test.hpp>
#include <univalue.h>
Include dependency graph for transaction_tests.cpp:

Go to the source code of this file.

Functions

UniValue read_json (const std::string &jsondata)
 
bool IsStandardTx (const CTransaction &tx, int nBlockHeight, std::string &reason)
 
unsigned int ParseScriptFlags (std::string strFlags)
 
std::string FormatScriptFlags (unsigned int flags)
 
 BOOST_AUTO_TEST_CASE (tx_valid)
 
 BOOST_AUTO_TEST_CASE (tx_invalid)
 
 BOOST_AUTO_TEST_CASE (basic_transaction_tests)
 
 BOOST_AUTO_TEST_CASE (test_Get)
 
 BOOST_AUTO_TEST_CASE (test_big_witness_transaction)
 
 BOOST_AUTO_TEST_CASE (test_IsStandard)
 

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/6]

BOOST_AUTO_TEST_CASE ( basic_transaction_tests  )

Definition at line 241 of file transaction_tests.cpp.

◆ BOOST_AUTO_TEST_CASE() [2/6]

BOOST_AUTO_TEST_CASE ( test_big_witness_transaction  )

Definition at line 321 of file transaction_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [3/6]

BOOST_AUTO_TEST_CASE ( test_Get  )

Definition at line 295 of file transaction_tests.cpp.

◆ BOOST_AUTO_TEST_CASE() [4/6]

BOOST_AUTO_TEST_CASE ( test_IsStandard  )

Definition at line 399 of file transaction_tests.cpp.

◆ BOOST_AUTO_TEST_CASE() [5/6]

BOOST_AUTO_TEST_CASE ( tx_invalid  )

Definition at line 166 of file transaction_tests.cpp.

◆ BOOST_AUTO_TEST_CASE() [6/6]

BOOST_AUTO_TEST_CASE ( tx_valid  )

Definition at line 90 of file transaction_tests.cpp.

◆ FormatScriptFlags()

std::string FormatScriptFlags ( unsigned int  flags)

Definition at line 72 of file transaction_tests.cpp.

◆ IsStandardTx()

bool IsStandardTx ( const CTransaction tx,
int  nBlockHeight,
std::string &  reason 
)

Definition at line 33 of file transaction_tests.cpp.

◆ ParseScriptFlags()

unsigned int ParseScriptFlags ( std::string  strFlags)

Definition at line 53 of file transaction_tests.cpp.

Here is the caller graph for this function:

◆ read_json()

UniValue read_json ( const std::string &  jsondata)

Definition at line 36 of file script_tests.cpp.

Here is the caller graph for this function: