#include <boost/test/unit_test.hpp>
#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 <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()
◆ 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()
static CBlockIndex * CreateBlockIndexWithNbits |
( |
uint32_t |
nbits | ) |
|
|
static |
◆ DoubleEquals()
static bool DoubleEquals |
( |
double |
a, |
|
|
double |
b, |
|
|
double |
epsilon |
|
) |
| |
|
static |
◆ RejectDifficultyMismatch()
static void RejectDifficultyMismatch |
( |
double |
difficulty, |
|
|
double |
expected_difficulty |
|
) |
| |
|
static |
◆ TestDifficulty()
static void TestDifficulty |
( |
uint32_t |
nbits, |
|
|
double |
expected_difficulty |
|
) |
| |
|
static |