#include <boost/test/unit_test.hpp>
#include <chain.h>
#include <rpc/blockchain.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/5]
BOOST_AUTO_TEST_CASE |
( |
get_difficulty_for_high_target |
| ) |
|
◆ BOOST_AUTO_TEST_CASE() [2/5]
BOOST_AUTO_TEST_CASE |
( |
get_difficulty_for_low_target |
| ) |
|
◆ BOOST_AUTO_TEST_CASE() [3/5]
BOOST_AUTO_TEST_CASE |
( |
get_difficulty_for_mid_target |
| ) |
|
◆ BOOST_AUTO_TEST_CASE() [4/5]
BOOST_AUTO_TEST_CASE |
( |
get_difficulty_for_very_high_target |
| ) |
|
◆ BOOST_AUTO_TEST_CASE() [5/5]
BOOST_AUTO_TEST_CASE |
( |
get_difficulty_for_very_low_target |
| ) |
|
◆ 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 |