Monero
Namespaces | Macros | Functions
difficulty.cpp File Reference
#include <algorithm>
#include <cassert>
#include <cstddef>
#include <cstdint>
#include <vector>
#include "common/int-util.h"
#include "crypto/hash.h"
#include "cryptonote_config.h"
#include "difficulty.h"
Include dependency graph for difficulty.cpp:

Namespaces

 cryptonote
 Holds cryptonote related classes and helpers.
 

Macros

#define MONERO_DEFAULT_LOG_CATEGORY   "difficulty"
 

Functions

static void cryptonote::mul (uint64_t a, uint64_t b, uint64_t &low, uint64_t &high)
 
static bool cryptonote::cadd (uint64_t a, uint64_t b)
 
static bool cryptonote::cadc (uint64_t a, uint64_t b, bool c)
 
bool cryptonote::check_hash (const crypto::hash &hash, difficulty_type difficulty)
 checks if a hash fits the given difficulty More...
 
difficulty_type cryptonote::next_difficulty (std::vector< std::uint64_t > timestamps, std::vector< difficulty_type > cumulative_difficulties, size_t target_seconds)
 

Macro Definition Documentation

◆ MONERO_DEFAULT_LOG_CATEGORY

#define MONERO_DEFAULT_LOG_CATEGORY   "difficulty"