PIVX Core  5.6.99
P2P Digital Currency
Functions
budget_tests.cpp File Reference
#include "test_pivx.h"
#include "bls/bls_wrapper.h"
#include "budget/budgetmanager.h"
#include "masternode-payments.h"
#include "spork.h"
#include "test/util/blocksutil.h"
#include "tiertwo/tiertwo_sync_state.h"
#include "tinyformat.h"
#include "utilmoneystr.h"
#include "validation.h"
#include <boost/test/unit_test.hpp>
Include dependency graph for budget_tests.cpp:

Go to the source code of this file.

Functions

void CheckBudgetValue (int nHeight, std::string strNetwork, CAmount nExpectedValue)
 
void enableMnSyncAndSuperblocksPayment ()
 
 BOOST_AUTO_TEST_CASE (masternode_value)
 
 BOOST_AUTO_TEST_CASE (budget_value)
 
 BOOST_FIXTURE_TEST_CASE (block_value, TestnetSetup)
 
 BOOST_FIXTURE_TEST_CASE (block_value_undermint, RegTestingSetup)
 
void forceAddFakeProposals (const CTxOut &payee1, const CTxOut &payee2)
 1) Create two proposals and two budget finalizations with a different proposal payment order: BudA pays propA and propB, BudB pays propB and propA. More...
 
 BOOST_FIXTURE_TEST_CASE (budget_blocks_payee_test, TestChain100Setup)
 
 BOOST_FIXTURE_TEST_CASE (budget_blocks_reorg_test, TestChain100Setup)
 
 BOOST_FIXTURE_TEST_CASE (IsCoinbaseValueValid_test, TestingSetup)
 
 BOOST_AUTO_TEST_CASE (fbv_signverify_bls)
 

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/3]

BOOST_AUTO_TEST_CASE ( budget_value  )

Definition at line 53 of file budget_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [2/3]

BOOST_AUTO_TEST_CASE ( fbv_signverify_bls  )

Definition at line 472 of file budget_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [3/3]

BOOST_AUTO_TEST_CASE ( masternode_value  )

Definition at line 45 of file budget_tests.cpp.

Here is the call graph for this function:

◆ BOOST_FIXTURE_TEST_CASE() [1/5]

BOOST_FIXTURE_TEST_CASE ( block_value  ,
TestnetSetup   
)

Definition at line 76 of file budget_tests.cpp.

Here is the call graph for this function:

◆ BOOST_FIXTURE_TEST_CASE() [2/5]

BOOST_FIXTURE_TEST_CASE ( block_value_undermint  ,
RegTestingSetup   
)

Definition at line 152 of file budget_tests.cpp.

Here is the call graph for this function:

◆ BOOST_FIXTURE_TEST_CASE() [3/5]

BOOST_FIXTURE_TEST_CASE ( budget_blocks_payee_test  ,
TestChain100Setup   
)

Definition at line 198 of file budget_tests.cpp.

Here is the call graph for this function:

◆ BOOST_FIXTURE_TEST_CASE() [4/5]

BOOST_FIXTURE_TEST_CASE ( budget_blocks_reorg_test  ,
TestChain100Setup   
)

Definition at line 280 of file budget_tests.cpp.

Here is the call graph for this function:

◆ BOOST_FIXTURE_TEST_CASE() [5/5]

BOOST_FIXTURE_TEST_CASE ( IsCoinbaseValueValid_test  ,
TestingSetup   
)

Definition at line 361 of file budget_tests.cpp.

Here is the call graph for this function:

◆ CheckBudgetValue()

void CheckBudgetValue ( int  nHeight,
std::string  strNetwork,
CAmount  nExpectedValue 
)

Definition at line 21 of file budget_tests.cpp.

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

◆ enableMnSyncAndSuperblocksPayment()

void enableMnSyncAndSuperblocksPayment ( )

Definition at line 29 of file budget_tests.cpp.

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

◆ forceAddFakeProposals()

void forceAddFakeProposals ( const CTxOut payee1,
const CTxOut payee2 
)

1) Create two proposals and two budget finalizations with a different proposal payment order: BudA pays propA and propB, BudB pays propB and propA.

2) Vote both finalization budgets, adding more votes to budA (so it becomes the most voted one).

Definition at line 168 of file budget_tests.cpp.

Here is the call graph for this function: