#include <chain.h>
#include <node/blockstorage.h>
#include <rpc/blockchain.h>
#include <sync.h>
#include <test/util/setup_common.h>
#include <util/string.h>
#include <boost/test/unit_test.hpp>
#include <cstdlib>
Go to the source code of this file.
◆ BOOST_AUTO_TEST_CASE() [1/6]
| BOOST_AUTO_TEST_CASE |
( |
get_difficulty_for_high_target | | ) |
|
◆ BOOST_AUTO_TEST_CASE() [2/6]
| BOOST_AUTO_TEST_CASE |
( |
get_difficulty_for_low_target | | ) |
|
◆ BOOST_AUTO_TEST_CASE() [3/6]
| BOOST_AUTO_TEST_CASE |
( |
get_difficulty_for_mid_target | | ) |
|
◆ BOOST_AUTO_TEST_CASE() [4/6]
| BOOST_AUTO_TEST_CASE |
( |
get_difficulty_for_very_high_target | | ) |
|
◆ BOOST_AUTO_TEST_CASE() [5/6]
| BOOST_AUTO_TEST_CASE |
( |
get_difficulty_for_very_low_target | | ) |
|
◆ BOOST_AUTO_TEST_CASE() [6/6]
| BOOST_AUTO_TEST_CASE |
( |
num_chain_tx_max | | ) |
|
◆ BOOST_FIXTURE_TEST_CASE() [1/2]
◆ BOOST_FIXTURE_TEST_CASE() [2/2]
◆ CheckGetPruneHeight()
Prune chain from height down to genesis block and check that GetPruneHeight returns the correct value
Definition at line 83 of file blockchain_tests.cpp.
◆ CreateBlockIndexWithNbits()
| CBlockIndex * CreateBlockIndexWithNbits |
( |
uint32_t | nbits | ) |
|
|
static |
◆ DoubleEquals()
| bool DoubleEquals |
( |
double | a, |
|
|
double | b, |
|
|
double | epsilon ) |
|
static |
◆ RejectDifficultyMismatch()
| void RejectDifficultyMismatch |
( |
double | difficulty, |
|
|
double | expected_difficulty ) |
|
static |
◆ TestDifficulty()
| void TestDifficulty |
( |
uint32_t | nbits, |
|
|
double | expected_difficulty ) |
|
static |
◆ ToString()
Locale-independent version of std::to_string.
Definition at line 246 of file string.h.