Bitcoin Core 32.1.0
P2P Digital Currency
Loading...
Searching...
No Matches
btck Namespace Reference

Classes

struct  is_bitmask_enum
struct  is_bitmask_enum< ScriptVerificationFlags >
struct  is_bitmask_enum< BlockCheckFlags >
class  Iterator
class  Range
class  View
class  Handle
class  UniqueHandle
class  ScriptPubkeyApi
class  ScriptPubkeyView
class  ScriptPubkey
class  TransactionOutputApi
class  TransactionOutputView
class  TransactionOutput
class  TxidApi
class  TxidView
class  Txid
class  OutPointApi
class  OutPointView
class  OutPoint
class  WitnessStackApi
class  WitnessStackView
class  WitnessStack
class  TransactionInputApi
class  TransactionInputView
class  TransactionInput
class  TransactionApi
class  TransactionView
class  Transaction
class  PrecomputedTransactionData
class  BlockHashApi
class  BlockHashView
class  BlockHash
class  BlockHeaderApi
class  BlockHeaderView
class  BlockHeader
class  ConsensusParamsView
class  Block
class  Logger
class  BlockTreeEntry
class  KernelNotifications
class  BlockValidationStateApi
class  BlockValidationStateView
class  BlockValidationState
class  TxValidationState
class  ValidationInterface
class  ChainParams
class  ContextOptions
class  Context
class  ChainstateManagerOptions
class  ChainView
class  CoinApi
class  CoinView
class  Coin
class  TransactionSpentOutputsApi
class  TransactionSpentOutputsView
class  TransactionSpentOutputs
class  BlockSpentOutputs
class  ChainMan

Concepts

concept  BitmaskEnum
concept  IndexedContainer
concept  Log

Enumerations

enum class  LogCategory : btck_LogCategory {
  ALL = btck_LogCategory_ALL , BENCH = btck_LogCategory_BENCH , BLOCKSTORAGE = btck_LogCategory_BLOCKSTORAGE , COINDB = btck_LogCategory_COINDB ,
  LEVELDB = btck_LogCategory_LEVELDB , MEMPOOL = btck_LogCategory_MEMPOOL , PRUNE = btck_LogCategory_PRUNE , RAND = btck_LogCategory_RAND ,
  REINDEX = btck_LogCategory_REINDEX , VALIDATION = btck_LogCategory_VALIDATION , KERNEL = btck_LogCategory_KERNEL
}
enum class  LogLevel : btck_LogLevel { TRACE_LEVEL = btck_LogLevel_TRACE , DEBUG_LEVEL = btck_LogLevel_DEBUG , INFO_LEVEL = btck_LogLevel_INFO }
enum class  ChainType : btck_ChainType {
  MAINNET = btck_ChainType_MAINNET , TESTNET = btck_ChainType_TESTNET , TESTNET_4 = btck_ChainType_TESTNET_4 , SIGNET = btck_ChainType_SIGNET ,
  REGTEST = btck_ChainType_REGTEST
}
enum class  SynchronizationState : btck_SynchronizationState { INIT_REINDEX = btck_SynchronizationState_INIT_REINDEX , INIT_DOWNLOAD = btck_SynchronizationState_INIT_DOWNLOAD , POST_INIT = btck_SynchronizationState_POST_INIT }
enum class  Warning : btck_Warning { UNKNOWN_NEW_RULES_ACTIVATED = btck_Warning_UNKNOWN_NEW_RULES_ACTIVATED , LARGE_WORK_INVALID_CHAIN = btck_Warning_LARGE_WORK_INVALID_CHAIN }
enum class  ValidationMode : btck_ValidationMode { VALID = btck_ValidationMode_VALID , INVALID = btck_ValidationMode_INVALID , INTERNAL_ERROR = btck_ValidationMode_INTERNAL_ERROR }
enum class  BlockValidationResult : btck_BlockValidationResult {
  UNSET = btck_BlockValidationResult_UNSET , CONSENSUS = btck_BlockValidationResult_CONSENSUS , CACHED_INVALID = btck_BlockValidationResult_CACHED_INVALID , INVALID_HEADER = btck_BlockValidationResult_INVALID_HEADER ,
  MUTATED = btck_BlockValidationResult_MUTATED , MISSING_PREV = btck_BlockValidationResult_MISSING_PREV , INVALID_PREV = btck_BlockValidationResult_INVALID_PREV , TIME_FUTURE = btck_BlockValidationResult_TIME_FUTURE ,
  HEADER_LOW_WORK = btck_BlockValidationResult_HEADER_LOW_WORK
}
enum class  TxValidationResult : btck_TxValidationResult {
  UNSET = btck_TxValidationResult_UNSET , CONSENSUS = btck_TxValidationResult_CONSENSUS , INPUTS_NOT_STANDARD = btck_TxValidationResult_INPUTS_NOT_STANDARD , NOT_STANDARD = btck_TxValidationResult_NOT_STANDARD ,
  MISSING_INPUTS = btck_TxValidationResult_MISSING_INPUTS , PREMATURE_SPEND = btck_TxValidationResult_PREMATURE_SPEND , WITNESS_MUTATED = btck_TxValidationResult_WITNESS_MUTATED , WITNESS_STRIPPED = btck_TxValidationResult_WITNESS_STRIPPED ,
  CONFLICT = btck_TxValidationResult_CONFLICT , MEMPOOL_POLICY = btck_TxValidationResult_MEMPOOL_POLICY , NO_MEMPOOL = btck_TxValidationResult_NO_MEMPOOL , RECONSIDERABLE = btck_TxValidationResult_RECONSIDERABLE ,
  UNKNOWN = btck_TxValidationResult_UNKNOWN
}
enum class  ScriptVerifyStatus : btck_ScriptVerifyStatus { OK = btck_ScriptVerifyStatus_OK , ERROR_INVALID_FLAGS_COMBINATION = btck_ScriptVerifyStatus_ERROR_INVALID_FLAGS_COMBINATION , ERROR_SPENT_OUTPUTS_REQUIRED = btck_ScriptVerifyStatus_ERROR_SPENT_OUTPUTS_REQUIRED }
enum class  ScriptVerificationFlags : btck_ScriptVerificationFlags {
  NONE = btck_ScriptVerificationFlags_NONE , P2SH = btck_ScriptVerificationFlags_P2SH , DERSIG = btck_ScriptVerificationFlags_DERSIG , NULLDUMMY = btck_ScriptVerificationFlags_NULLDUMMY ,
  CHECKLOCKTIMEVERIFY = btck_ScriptVerificationFlags_CHECKLOCKTIMEVERIFY , CHECKSEQUENCEVERIFY = btck_ScriptVerificationFlags_CHECKSEQUENCEVERIFY , WITNESS = btck_ScriptVerificationFlags_WITNESS , TAPROOT = btck_ScriptVerificationFlags_TAPROOT ,
  ALL = btck_ScriptVerificationFlags_ALL
}
enum class  BlockCheckFlags : btck_BlockCheckFlags { BASE = btck_BlockCheckFlags_BASE , POW = btck_BlockCheckFlags_POW , MERKLE = btck_BlockCheckFlags_MERKLE , ALL = btck_BlockCheckFlags_ALL }

Functions

template<BitmaskEnum T>
constexpr T operator| (T lhs, T rhs)
template<BitmaskEnum T>
constexpr T operator& (T lhs, T rhs)
template<BitmaskEnum T>
constexpr T operator^ (T lhs, T rhs)
template<BitmaskEnum T>
constexpr T operator~ (T value)
template<BitmaskEnum T>
constexpr T & operator|= (T &lhs, T rhs)
template<BitmaskEnum T>
constexpr T & operator&= (T &lhs, T rhs)
template<BitmaskEnum T>
constexpr T & operator^= (T &lhs, T rhs)
template<typename T>
T check (T ptr)
template<typename T>
std::vector< std::byte > write_bytes (const T *object, int(*to_bytes)(const T *, btck_WriteBytes, void *))
void logging_disable ()
void logging_set_options (const btck_LoggingOptions &logging_options)
void logging_set_level_category (LogCategory category, LogLevel level)
void logging_enable_category (LogCategory category)
void logging_disable_category (LogCategory category)
bool CheckTransaction (const Transaction &tx, TxValidationState &state)
void set_mock_time (std::chrono::seconds timestamp)

Enumeration Type Documentation

◆ BlockCheckFlags

Enumerator
BASE 
POW 
MERKLE 
ALL 

Definition at line 117 of file bitcoinkernel_wrapper.h.

◆ BlockValidationResult

Enumerator
UNSET 
CONSENSUS 
CACHED_INVALID 
INVALID_HEADER 
MUTATED 
MISSING_PREV 
INVALID_PREV 
TIME_FUTURE 
HEADER_LOW_WORK 

Definition at line 71 of file bitcoinkernel_wrapper.h.

◆ ChainType

enum class btck::ChainType : btck_ChainType
strong
Enumerator
MAINNET 
TESTNET 
TESTNET_4 
SIGNET 
REGTEST 

Definition at line 46 of file bitcoinkernel_wrapper.h.

◆ LogCategory

enum class btck::LogCategory : btck_LogCategory
strong
Enumerator
ALL 
BENCH 
BLOCKSTORAGE 
COINDB 
LEVELDB 
MEMPOOL 
PRUNE 
RAND 
REINDEX 
VALIDATION 
KERNEL 

Definition at line 26 of file bitcoinkernel_wrapper.h.

◆ LogLevel

enum class btck::LogLevel : btck_LogLevel
strong
Enumerator
TRACE_LEVEL 
DEBUG_LEVEL 
INFO_LEVEL 

Definition at line 40 of file bitcoinkernel_wrapper.h.

◆ ScriptVerificationFlags

Enumerator
NONE 
P2SH 
DERSIG 
NULLDUMMY 
CHECKLOCKTIMEVERIFY 
CHECKSEQUENCEVERIFY 
WITNESS 
TAPROOT 
ALL 

Definition at line 105 of file bitcoinkernel_wrapper.h.

◆ ScriptVerifyStatus

Enumerator
OK 
ERROR_INVALID_FLAGS_COMBINATION 
ERROR_SPENT_OUTPUTS_REQUIRED 

Definition at line 99 of file bitcoinkernel_wrapper.h.

◆ SynchronizationState

Enumerator
INIT_REINDEX 
INIT_DOWNLOAD 
POST_INIT 

Definition at line 54 of file bitcoinkernel_wrapper.h.

◆ TxValidationResult

Enumerator
UNSET 
CONSENSUS 
INPUTS_NOT_STANDARD 
NOT_STANDARD 
MISSING_INPUTS 
PREMATURE_SPEND 
WITNESS_MUTATED 
WITNESS_STRIPPED 
CONFLICT 
MEMPOOL_POLICY 
NO_MEMPOOL 
RECONSIDERABLE 
UNKNOWN 

Definition at line 83 of file bitcoinkernel_wrapper.h.

◆ ValidationMode

Enumerator
VALID 
INVALID 
INTERNAL_ERROR 

Definition at line 65 of file bitcoinkernel_wrapper.h.

◆ Warning

enum class btck::Warning : btck_Warning
strong
Enumerator
UNKNOWN_NEW_RULES_ACTIVATED 
LARGE_WORK_INVALID_CHAIN 

Definition at line 60 of file bitcoinkernel_wrapper.h.

Function Documentation

◆ check()

template<typename T>
T btck::check ( T ptr)

Definition at line 185 of file bitcoinkernel_wrapper.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CheckTransaction()

bool btck::CheckTransaction ( const Transaction & tx,
TxValidationState & state )
inline

Definition at line 1090 of file bitcoinkernel_wrapper.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ logging_disable()

void btck::logging_disable ( )
inline

Definition at line 921 of file bitcoinkernel_wrapper.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ logging_disable_category()

void btck::logging_disable_category ( LogCategory category)
inline

Definition at line 941 of file bitcoinkernel_wrapper.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ logging_enable_category()

void btck::logging_enable_category ( LogCategory category)
inline

Definition at line 936 of file bitcoinkernel_wrapper.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ logging_set_level_category()

void btck::logging_set_level_category ( LogCategory category,
LogLevel level )
inline

Definition at line 931 of file bitcoinkernel_wrapper.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ logging_set_options()

void btck::logging_set_options ( const btck_LoggingOptions & logging_options)
inline

Definition at line 926 of file bitcoinkernel_wrapper.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator&()

template<BitmaskEnum T>
T btck::operator& ( T lhs,
T rhs )
constexpr

Definition at line 147 of file bitcoinkernel_wrapper.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator&=()

template<BitmaskEnum T>
T & btck::operator&= ( T & lhs,
T rhs )
constexpr

Definition at line 173 of file bitcoinkernel_wrapper.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator^()

template<BitmaskEnum T>
T btck::operator^ ( T lhs,
T rhs )
constexpr

Definition at line 154 of file bitcoinkernel_wrapper.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator^=()

template<BitmaskEnum T>
T & btck::operator^= ( T & lhs,
T rhs )
constexpr

Definition at line 179 of file bitcoinkernel_wrapper.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator|()

template<BitmaskEnum T>
T btck::operator| ( T lhs,
T rhs )
constexpr

Definition at line 140 of file bitcoinkernel_wrapper.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator|=()

template<BitmaskEnum T>
T & btck::operator|= ( T & lhs,
T rhs )
constexpr

Definition at line 167 of file bitcoinkernel_wrapper.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator~()

template<BitmaskEnum T>
T btck::operator~ ( T value)
constexpr

Definition at line 161 of file bitcoinkernel_wrapper.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ set_mock_time()

void btck::set_mock_time ( std::chrono::seconds timestamp)
inline

Definition at line 1419 of file bitcoinkernel_wrapper.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ write_bytes()

template<typename T>
std::vector< std::byte > btck::write_bytes ( const T * object,
int(* to_bytes )(const T *, btck_WriteBytes, void *) )

Definition at line 294 of file bitcoinkernel_wrapper.h.

Here is the call graph for this function:
Here is the caller graph for this function: