![]() |
PIVX Core
5.6.99
P2P Digital Currency
|
#include <boost/test/unit_test.hpp>#include "blockassembler.h"#include "chainparams.h"#include "consensus/merkle.h"#include "consensus/validation.h"#include "pow.h"#include "random.h"#include "test/test_pivx.h"#include "util/blockstatecatcher.h"#include "validation.h"#include "validationinterface.h"Go to the source code of this file.
Classes | |
| struct | TestSubscriber |
Macros | |
| #define | ASSERT_WITH_MSG(cond, msg) if (!cond) { BOOST_ERROR(msg); } |
Functions | |
| std::shared_ptr< CBlock > | Block (const uint256 &prev_hash) |
| const std::shared_ptr< const CBlock > | GoodBlock (const uint256 &prev_hash) |
| const std::shared_ptr< const CBlock > | BadBlock (const uint256 &prev_hash) |
| void | BuildChain (const uint256 &root, int height, const unsigned int invalid_rate, const unsigned int branch_rate, const unsigned int max_size, std::vector< std::shared_ptr< const CBlock >> &blocks) |
| BOOST_AUTO_TEST_CASE (processnewblock_signals_ordering) | |
| #define ASSERT_WITH_MSG | ( | cond, | |
| msg | |||
| ) | if (!cond) { BOOST_ERROR(msg); } |
Definition at line 19 of file validation_block_tests.cpp.
Definition at line 77 of file validation_block_tests.cpp.
Definition at line 50 of file validation_block_tests.cpp.
| BOOST_AUTO_TEST_CASE | ( | processnewblock_signals_ordering | ) |
Definition at line 111 of file validation_block_tests.cpp.
| void BuildChain | ( | const uint256 & | root, |
| int | height, | ||
| const unsigned int | invalid_rate, | ||
| const unsigned int | branch_rate, | ||
| const unsigned int | max_size, | ||
| std::vector< std::shared_ptr< const CBlock >> & | blocks | ||
| ) |
Definition at line 92 of file validation_block_tests.cpp.
Definition at line 71 of file validation_block_tests.cpp.