PIVX Core  5.6.99
P2P Digital Currency
Classes | Enumerations | Functions | Variables
test_pivx.h File Reference
#include "fs.h"
#include "scheduler.h"
#include "txdb.h"
#include <stdexcept>
#include <boost/thread.hpp>
Include dependency graph for test_pivx.h:

Go to the source code of this file.

Classes

struct  BasicTestingSetup
 Basic testing setup. More...
 
struct  TestingSetup
 
struct  TestnetSetup
 
struct  RegTestingSetup
 
struct  TestChainSetup
 
struct  TestChain100Setup
 
struct  TestChain400Setup
 
struct  TestMemPoolEntryHelper
 
class  HasReason
 BOOST_CHECK_EXCEPTION predicates to check the specific validation error. More...
 

Enumerations

enum class  SeedRand { ZEROS , SEED }
 

Functions

void Seed (FastRandomContext &ctx)
 Seed the given random ctx or use the seed passed in via an environment var. More...
 
std::shared_ptr< CBlockFinalizeBlock (std::shared_ptr< CBlock > pblock)
 
std::ostream & operator<< (std::ostream &os, const uint256 &num)
 

Variables

FastRandomContext g_insecure_rand_ctx
 
bool g_mock_deterministic_tests
 Flag to make GetRand in random.h return the same number. More...
 

Enumeration Type Documentation

◆ SeedRand

enum SeedRand
strong
Enumerator
ZEROS 

Seed with a compile time constant of zeros.

SEED 

Call the Seed() helper.

Definition at line 23 of file test_pivx.h.

Function Documentation

◆ FinalizeBlock()

std::shared_ptr<CBlock> FinalizeBlock ( std::shared_ptr< CBlock pblock)

Definition at line 239 of file test_pivx.cpp.

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

◆ operator<<()

std::ostream& operator<< ( std::ostream &  os,
const uint256 num 
)

Definition at line 61 of file test_pivx.cpp.

Here is the call graph for this function:

◆ Seed()

void Seed ( FastRandomContext ctx)

Seed the given random ctx or use the seed passed in via an environment var.

Definition at line 47 of file test_pivx.cpp.

Variable Documentation

◆ g_insecure_rand_ctx

FastRandomContext g_insecure_rand_ctx
extern

Definition at line 35 of file test_pivx.cpp.

◆ g_mock_deterministic_tests

bool g_mock_deterministic_tests
extern

Flag to make GetRand in random.h return the same number.

Definition at line 584 of file random.cpp.